From d87966b4661889d82770ba92dcd4c60de9363ae7 Mon Sep 17 00:00:00 2001 From: Ed Page Date: Wed, 2 Nov 2022 16:42:14 -0500 Subject: [PATCH] test(publish): Require extra waits --- tests/testsuite/publish.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/testsuite/publish.rs b/tests/testsuite/publish.rs index 236aea121..8a0e02559 100644 --- a/tests/testsuite/publish.rs +++ b/tests/testsuite/publish.rs @@ -2579,7 +2579,7 @@ fn wait_for_subsequent_publish() { let mut lock = arc.lock().unwrap(); *lock += 1; // if the package name contains _ or - - if *lock <= 1 { + if *lock <= 2 { server.not_found(req) } else { server.index(req) @@ -2628,7 +2628,7 @@ See [..] // Verify the responder has been pinged let lock = arc2.lock().unwrap(); - assert_eq!(*lock, 2); + assert_eq!(*lock, 3); drop(lock); let p = project()