From e193156add0edda2261ceac0d9dbe10876237cf5 Mon Sep 17 00:00:00 2001 From: William Banfield Date: Tue, 9 Nov 2021 15:34:39 -0500 Subject: [PATCH] remove sleep that guarded against nondeterministic behavior --- internal/evidence/reactor_test.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/internal/evidence/reactor_test.go b/internal/evidence/reactor_test.go index 595362b8f..d1ae55803 100644 --- a/internal/evidence/reactor_test.go +++ b/internal/evidence/reactor_test.go @@ -435,11 +435,6 @@ func TestReactorBroadcastEvidence_Committed(t *testing.T) { // start the network and ensure it's configured rts.start(t) - // without the following sleep the test consistently fails; - // likely because the sleep forces a context switch that lets - // the router process other operations. - time.Sleep(2 * time.Millisecond) - // The secondary reactor should have received all the evidence ignoring the // already committed evidence. rts.waitForEvidence(t, evList[numEvidence/2:], secondary.NodeID)