diff --git a/crossbeam-skiplist/tests/base.rs b/crossbeam-skiplist/tests/base.rs index 8abcc29e9..d12b7fde7 100644 --- a/crossbeam-skiplist/tests/base.rs +++ b/crossbeam-skiplist/tests/base.rs @@ -987,7 +987,7 @@ fn remove_race() { let s = SkipList::new(epoch::default_collector().clone()); for x in 0..key_range { - s.insert(x, (), guard); + s.insert(x, (), guard).release(guard); } let barrier1 = AtomicU32::new(nthreads);