mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-04-19 13:36:54 +02:00
made the correctness tests less aggressive
This commit is contained in:
parent
68fc397d34
commit
984782d779
1 changed files with 3 additions and 3 deletions
|
@ -495,7 +495,7 @@ mod tests {
|
|||
|
||||
#[test]
|
||||
fn multi_thread() {
|
||||
const N: usize = 123456;
|
||||
const N: usize = 12345;
|
||||
static COUNT: AtomicU64 = AtomicU64::new(0);
|
||||
|
||||
let mut joins = Vec::new();
|
||||
|
@ -556,7 +556,7 @@ mod tests {
|
|||
|
||||
let s = Arc::new(PoolArcSwap::new(TestPools::alloc(Item::new(0, &COUNT))));
|
||||
|
||||
for _ in 0..1234 {
|
||||
for _ in 0..123 {
|
||||
let mut joins = Vec::new();
|
||||
for _ in 0..8 {
|
||||
let swaps = s.clone();
|
||||
|
@ -578,7 +578,7 @@ mod tests {
|
|||
|
||||
#[test]
|
||||
fn multi_thread_swap_load() {
|
||||
const N: usize = 123456;
|
||||
const N: usize = 12345;
|
||||
static COUNT: AtomicU64 = AtomicU64::new(0);
|
||||
|
||||
let s: Arc<[_; 8]> = Arc::new(std::array::from_fn(|i| PoolArcSwap::new(TestPools::alloc(Item::new(i as u32, &COUNT)))));
|
||||
|
|
Loading…
Add table
Reference in a new issue