diff --git a/system_tests/espresso_e2e_test.go b/system_tests/espresso_e2e_test.go index 741b15c9ff..562b8b030d 100644 --- a/system_tests/espresso_e2e_test.go +++ b/system_tests/espresso_e2e_test.go @@ -414,7 +414,7 @@ func TestEspressoE2E(t *testing.T) { Require(t, err) // Wait for the number of validated messages to catch up - err = waitFor(t, ctx, func() bool { + err = waitForWith(t, ctx, 60*time.Second, 5*time.Second, func() bool { validatedCnt := node.ConsensusNode.BlockValidator.Validated(t) log.Info("waiting for validation", "validatedCnt", validatedCnt, "msgCnt", msgCnt) return validatedCnt >= msgCnt