From f2005a78ca59f7e3bd1b59c99638e8a382a2b2fa Mon Sep 17 00:00:00 2001 From: Carl Lerche Date: Thu, 26 Mar 2020 15:23:33 -0700 Subject: [PATCH] timer: fix loom test (#2346) Fixes a test from a PR that was written before the recent loom upgrade. A change in the details how loom executes models resulted in the test to start failing. The fix is to reduce the number of iterations performed by the test. --- tokio/src/time/driver/tests/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tokio/src/time/driver/tests/mod.rs b/tokio/src/time/driver/tests/mod.rs index 5986d4020..88ff5525d 100644 --- a/tokio/src/time/driver/tests/mod.rs +++ b/tokio/src/time/driver/tests/mod.rs @@ -15,7 +15,7 @@ impl Unpark for MockUnpark { #[test] fn balanced_incr_and_decr() { - const OPS: usize = 100; + const OPS: usize = 5; fn incr(inner: Arc) { for _ in 0..OPS {