From 532a0f97197c9511d85b20d7eb63278795691de6 Mon Sep 17 00:00:00 2001 From: Thane Thomson Date: Wed, 13 Apr 2022 13:01:49 -0400 Subject: [PATCH] Remove channel capacity constraint in test helper to avoid missing messages Signed-off-by: Thane Thomson --- internal/consensus/common_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/consensus/common_test.go b/internal/consensus/common_test.go index 242bf5576..acde5aa76 100644 --- a/internal/consensus/common_test.go +++ b/internal/consensus/common_test.go @@ -380,7 +380,7 @@ func subscribeToVoter(ctx context.Context, t *testing.T, cs *State, addr []byte, vt[t] = struct{}{} } - ch := make(chan tmpubsub.Message, 1) + ch := make(chan tmpubsub.Message) if err := cs.eventBus.Observe(ctx, func(msg tmpubsub.Message) error { vote := msg.Data().(types.EventDataVote) // we only fire for our own votes