mirror of
https://github.com/coder/coder.git
synced 2025-07-08 11:39:50 +00:00
fix: post-hoc testutil fix (#3391)
This commit is contained in:
@ -35,7 +35,9 @@ func Eventually(ctx context.Context, t testing.TB, condition func(context.Contex
|
|||||||
assert.NoError(t, ctx.Err(), "Eventually timed out")
|
assert.NoError(t, ctx.Err(), "Eventually timed out")
|
||||||
return false
|
return false
|
||||||
case <-tick:
|
case <-tick:
|
||||||
assert.NoError(t, ctx.Err(), "Eventually timed out")
|
if !assert.NoError(t, ctx.Err(), "Eventually timed out") {
|
||||||
|
return false
|
||||||
|
}
|
||||||
if condition(ctx) {
|
if condition(ctx) {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user