We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parent8b6e286 commitdcad0a4Copy full SHA for dcad0a4
coderd/workspaces_test.go
@@ -586,6 +586,8 @@ func TestPostWorkspacesByOrganization(t *testing.T) {
586
workspace:=coderdtest.CreateWorkspace(t,client,user.OrganizationID,template.ID,func(cwr*codersdk.CreateWorkspaceRequest) {
587
cwr.TTLMillis=ptr.Ref(int64(0))
588
})
589
+coderdtest.AwaitWorkspaceBuildJob(t,client,workspace.LatestBuild.ID)
590
+
591
// Then: No TTL should be set by the template
592
require.Nil(t,workspace.TTLMillis)
593
@@ -603,6 +605,8 @@ func TestPostWorkspacesByOrganization(t *testing.T) {
603
605
604
606
cwr.TTLMillis=nil// ensure that no default TTL is set
607
608
609
610
// TTL should be set by the template
611
require.Equal(t,template.DefaultTTLMillis,templateTTL)
612
require.Equal(t,template.DefaultTTLMillis,*workspace.TTLMillis)