remove ensurePrecommit

This commit is contained in:
William Banfield
2021-12-02 16:06:04 -05:00
parent 45b78fb0bd
commit d0a39c267a
2 changed files with 1 additions and 6 deletions
-5
View File
@@ -733,11 +733,6 @@ func ensureVote(t *testing.T, voteCh <-chan tmpubsub.Message, height int64, roun
}
}
func ensurePrecommitTimeout(t *testing.T, ch <-chan tmpubsub.Message) {
t.Helper()
ensureNoMessageBeforeTimeout(t, ch, ensureTimeout, "Timeout expired while waiting for the Precommit to Timeout")
}
func ensureNewEventOnChannel(t *testing.T, ch <-chan tmpubsub.Message) {
t.Helper()
ensureMessageBeforeTimeout(t, ch, ensureTimeout)
+1 -1
View File
@@ -2291,7 +2291,7 @@ func TestStartNextHeightCorrectlyAfterTimeout(t *testing.T) {
signAddVotes(ctx, cs1, tmproto.PrecommitType, config.ChainID(), blockID, vs3)
// wait till timeout occurs
ensurePrecommitTimeout(t, precommitTimeoutCh)
ensureNewTimeout(t, precommitTimeoutCh, height, round, cs1.config.TimeoutPrecommit.Nanoseconds())
ensureNewRound(t, newRoundCh, height, round+1)