diff --git a/crates/test_utils/src/mark.rs b/crates/test_utils/src/mark.rs index 7c309a8945..97f5a93ad9 100644 --- a/crates/test_utils/src/mark.rs +++ b/crates/test_utils/src/mark.rs @@ -62,7 +62,7 @@ pub struct MarkChecker { impl MarkChecker { pub fn new(mark: &'static AtomicUsize) -> MarkChecker { - let value_on_entry = mark.load(Ordering::SeqCst); + let value_on_entry = mark.load(Ordering::Relaxed); MarkChecker { mark, value_on_entry } } } @@ -72,7 +72,7 @@ impl Drop for MarkChecker { if std::thread::panicking() { return; } - let value_on_exit = self.mark.load(Ordering::SeqCst); + let value_on_exit = self.mark.load(Ordering::Relaxed); assert!(value_on_exit > self.value_on_entry, "mark was not hit") } }