mirror of
https://github.com/tendermint/tendermint.git
synced 2026-02-10 14:00:33 +00:00
simplify collector loop
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user