@@ -480,7 +480,10 @@ func TestWorkspaceUpdateAutostart(t *testing.T) {
480
480
version = coderdtest .CreateTemplateVersion (t , client , user .OrganizationID , nil )
481
481
_ = coderdtest .AwaitTemplateVersionJob (t , client , version .ID )
482
482
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
+ })
484
487
)
485
488
486
489
// ensure test invariant: new workspaces have no autostart schedule.
@@ -565,7 +568,10 @@ func TestWorkspaceUpdateAutostop(t *testing.T) {
565
568
version = coderdtest .CreateTemplateVersion (t , client , user .OrganizationID , nil )
566
569
_ = coderdtest .AwaitTemplateVersionJob (t , client , version .ID )
567
570
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
+ })
569
575
)
570
576
571
577
// ensure test invariant: new workspaces have no autostop schedule.
0 commit comments