Skip to content

Commit 854bb5d

Browse files
authored
fix: post-hoc testutil fix (#3391)
1 parent e7bc013 commit 854bb5d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

testutil/eventually.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,9 @@ func Eventually(ctx context.Context, t testing.TB, condition func(context.Contex
3535
assert.NoError(t, ctx.Err(), "Eventually timed out")
3636
return false
3737
case <-tick:
38-
assert.NoError(t, ctx.Err(), "Eventually timed out")
38+
if !assert.NoError(t, ctx.Err(), "Eventually timed out") {
39+
return false
40+
}
3941
if condition(ctx) {
4042
return true
4143
}

0 commit comments

Comments
 (0)