We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5c21409 commit e40a302Copy full SHA for e40a302
coderd/autobuild/lifecycle_executor_test.go
@@ -269,7 +269,7 @@ func TestExecutorAutostartUserSuspended(t *testing.T) {
269
t.Parallel()
270
271
var (
272
- ctx = context.Background()
+ ctx = testutil.Context(t, testutil.WaitShort)
273
sched = mustSchedule(t, "CRON_TZ=UTC 0 * * * *")
274
tickCh = make(chan time.Time)
275
statsCh = make(chan autobuild.Stats)
@@ -304,7 +304,7 @@ func TestExecutorAutostartUserSuspended(t *testing.T) {
304
}()
305
306
// Then: nothing should happen
307
- stats := <-statsCh
+ stats := testutil.RequireRecvCtx(ctx, t, statsCh)
308
assert.NoError(t, stats.Error)
309
assert.Len(t, stats.Transitions, 0)
310
}
0 commit comments