From 19ffe3031877cf9dc9546d4a9027f744bc8f0e10 Mon Sep 17 00:00:00 2001 From: Tsachi Herman Date: Mon, 20 Sep 2021 17:03:12 -0400 Subject: [PATCH] Fix unit test --- compactcert/worker_test.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/compactcert/worker_test.go b/compactcert/worker_test.go index e8b2554cc9..2a14b43695 100644 --- a/compactcert/worker_test.go +++ b/compactcert/worker_test.go @@ -393,7 +393,9 @@ func TestLatestSigsFromThisNode(t *testing.T) { } // Add a block that claims the compact cert is formed. + s.mu.Lock() s.addBlock(3 * basics.Round(proto.CompactCertRounds)) + s.mu.Unlock() // Wait for the builder to discard the signatures. time.Sleep(time.Second)