Skip to content

fix: skip autostart for suspended/dormant users #10771

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Nov 22, 2023
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