Skip to content

Commit e40a302

Browse files
committed
jon review
1 parent 5c21409 commit e40a302

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

coderd/autobuild/lifecycle_executor_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ func TestExecutorAutostartUserSuspended(t *testing.T) {
269269
t.Parallel()
270270

271271
var (
272-
ctx = context.Background()
272+
ctx = testutil.Context(t, testutil.WaitShort)
273273
sched = mustSchedule(t, "CRON_TZ=UTC 0 * * * *")
274274
tickCh = make(chan time.Time)
275275
statsCh = make(chan autobuild.Stats)
@@ -304,7 +304,7 @@ func TestExecutorAutostartUserSuspended(t *testing.T) {
304304
}()
305305

306306
// Then: nothing should happen
307-
stats := <-statsCh
307+
stats := testutil.RequireRecvCtx(ctx, t, statsCh)
308308
assert.NoError(t, stats.Error)
309309
assert.Len(t, stats.Transitions, 0)
310310
}

0 commit comments

Comments
 (0)