diff --git a/internal/consensus/pbts_test.go b/internal/consensus/pbts_test.go index acd72b9e4..434640226 100644 --- a/internal/consensus/pbts_test.go +++ b/internal/consensus/pbts_test.go @@ -276,10 +276,12 @@ func collectHeightResults(ctx context.Context, t *testing.T, eventCh <-chan time res.proposalIssuedAt = event.ts } if res.isComplete() { - break + return res } } - return res + t.Fatalf("complete height result never seen for height %d", height) + + panic("unreachable") } type timestampedEvent struct {