diff --git a/hare4/hare_test.go b/hare4/hare_test.go index c6829f377a..3af18750fc 100644 --- a/hare4/hare_test.go +++ b/hare4/hare_test.go @@ -1359,8 +1359,7 @@ func TestHare_ReconstructCollision(t *testing.T) { cluster.partitionSigners() } layer := tst.genesis + 1 - cluster.drainInteractiveMessages() - cluster.setup() + // scenario: // node 1 has generated 1 proposal that (mocked) hash into 0xab as prefix - both nodes know the proposal // node 2 has generated 1 proposal that hash into 0xab (but node 1 doesn't know about it) @@ -1370,6 +1369,11 @@ func TestHare_ReconstructCollision(t *testing.T) { // failed signature vs. hashes colliding - there's a difference in number of single prefixes // that are sent, but the response should be the same) + go func() { <-cluster.nodes[1].tracer.compactReq }() // node 2 gets the request + go func() { <-cluster.nodes[0].tracer.compactResp }() // node 1 gets the response + + cluster.setup() + cluster.genProposals(layer, 1) cluster.genProposalNode(layer, 1) cluster.movePreround(layer)