simplify collector loop

This commit is contained in:
William Banfield
2021-12-03 13:38:23 -05:00
parent e5b992ff48
commit 167e3e6625

View File

@@ -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 {