Skip to content

Commit 0169315

Browse files
committed
fixup! coderd: workspaces: consume additional fields of CreateWorkspaceRequest
1 parent 98561bf commit 0169315

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

coderd/workspaces_test.go

+8-2
Original file line numberDiff line numberDiff line change
@@ -480,7 +480,10 @@ func TestWorkspaceUpdateAutostart(t *testing.T) {
480480
version = coderdtest.CreateTemplateVersion(t, client, user.OrganizationID, nil)
481481
_ = coderdtest.AwaitTemplateVersionJob(t, client, version.ID)
482482
project = coderdtest.CreateTemplate(t, client, user.OrganizationID, version.ID)
483-
workspace = coderdtest.CreateWorkspace(t, client, user.OrganizationID, project.ID)
483+
workspace = coderdtest.CreateWorkspace(t, client, user.OrganizationID, project.ID, func(cwr *codersdk.CreateWorkspaceRequest) {
484+
cwr.AutostartSchedule = nil
485+
cwr.TTL = nil
486+
})
484487
)
485488

486489
// ensure test invariant: new workspaces have no autostart schedule.
@@ -565,7 +568,10 @@ func TestWorkspaceUpdateAutostop(t *testing.T) {
565568
version = coderdtest.CreateTemplateVersion(t, client, user.OrganizationID, nil)
566569
_ = coderdtest.AwaitTemplateVersionJob(t, client, version.ID)
567570
project = coderdtest.CreateTemplate(t, client, user.OrganizationID, version.ID)
568-
workspace = coderdtest.CreateWorkspace(t, client, user.OrganizationID, project.ID)
571+
workspace = coderdtest.CreateWorkspace(t, client, user.OrganizationID, project.ID, func(cwr *codersdk.CreateWorkspaceRequest) {
572+
cwr.AutostartSchedule = nil
573+
cwr.TTL = nil
574+
})
569575
)
570576

571577
// ensure test invariant: new workspaces have no autostop schedule.

0 commit comments

Comments
 (0)