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)