Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
jon review
  • Loading branch information
coadler committed Nov 22, 2023
commit e40a3020fea578701e323f8f4570b9baedfd1d4f
4 changes: 2 additions & 2 deletions coderd/autobuild/lifecycle_executor_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ func TestExecutorAutostartUserSuspended(t *testing.T) {
t.Parallel()

var (
ctx = context.Background()
ctx = testutil.Context(t, testutil.WaitShort)
sched = mustSchedule(t, "CRON_TZ=UTC 0 * * * *")
tickCh = make(chan time.Time)
statsCh = make(chan autobuild.Stats)
Expand Down Expand Up @@ -304,7 +304,7 @@ func TestExecutorAutostartUserSuspended(t *testing.T) {
}()

// Then: nothing should happen
stats := <-statsCh
stats := testutil.RequireRecvCtx(ctx, t, statsCh)
assert.NoError(t, stats.Error)
assert.Len(t, stats.Transitions, 0)
}
Expand Down