mirror of https://github.com/coder/coder.git
fix: post-hoc testutil fix (#3391)
This commit is contained in:
parent
e7bc01383c
commit
854bb5dbeb
|
@ -35,7 +35,9 @@ func Eventually(ctx context.Context, t testing.TB, condition func(context.Contex
|
|||
assert.NoError(t, ctx.Err(), "Eventually timed out")
|
||||
return false
|
||||
case <-tick:
|
||||
assert.NoError(t, ctx.Err(), "Eventually timed out")
|
||||
if !assert.NoError(t, ctx.Err(), "Eventually timed out") {
|
||||
return false
|
||||
}
|
||||
if condition(ctx) {
|
||||
return true
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue