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.
This commit is contained in:
Carl Lerche 2020-03-26 15:23:33 -07:00 committed by GitHub
parent 3fb213a861
commit f2005a78ca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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<Inner>) {
for _ in 0..OPS {