Skip to content

Commit e6d2173

Browse files
committed
chore: fix flake in TestExecutorAutostopTemplateDisabled
1 parent e73a202 commit e6d2173

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

coderd/autobuild/lifecycle_executor_test.go

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -791,10 +791,9 @@ func TestExecutorAutostopTemplateDisabled(t *testing.T) {
791791
tickCh = make(chan time.Time)
792792
statsCh = make(chan autobuild.Stats)
793793

794-
client = coderdtest.New(t, &coderdtest.Options{
795-
AutobuildTicker: tickCh,
796-
IncludeProvisionerDaemon: true,
797-
AutobuildStats: statsCh,
794+
client, _ = coderdtest.NewWithDatabase(t, &coderdtest.Options{
795+
AutobuildTicker: tickCh,
796+
AutobuildStats: statsCh,
798797
// We are using a mock store here as the AGPL store does not implement this.
799798
TemplateScheduleStore: schedule.MockTemplateScheduleStore{
800799
GetFn: func(_ context.Context, _ database.Store, _ uuid.UUID) (schedule.TemplateScheduleOptions, error) {

0 commit comments

Comments
 (0)