Skip to content

Commit 51f5ef8

Browse files
committed
update test assert
1 parent 5024171 commit 51f5ef8

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

coderd/provisionerdserver/provisionerdserver_test.go

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -568,8 +568,9 @@ func TestAcquireJob(t *testing.T) {
568568
want, err := json.Marshal(&proto.AcquiredJob_TemplateDryRun_{
569569
TemplateDryRun: &proto.AcquiredJob_TemplateDryRun{
570570
Metadata: &sdkproto.Metadata{
571-
CoderUrl: (&url.URL{}).String(),
572-
WorkspaceName: "testing",
571+
CoderUrl: (&url.URL{}).String(),
572+
WorkspaceName: "testing",
573+
WorkspaceOwnerGroups: []string{database.EveryoneGroup},
573574
},
574575
},
575576
})
@@ -600,7 +601,8 @@ func TestAcquireJob(t *testing.T) {
600601
want, err := json.Marshal(&proto.AcquiredJob_TemplateImport_{
601602
TemplateImport: &proto.AcquiredJob_TemplateImport{
602603
Metadata: &sdkproto.Metadata{
603-
CoderUrl: (&url.URL{}).String(),
604+
CoderUrl: (&url.URL{}).String(),
605+
WorkspaceOwnerGroups: []string{database.EveryoneGroup},
604606
},
605607
},
606608
})
@@ -643,7 +645,8 @@ func TestAcquireJob(t *testing.T) {
643645
{Name: "first", Sensitive: true, Value: "first_value"},
644646
},
645647
Metadata: &sdkproto.Metadata{
646-
CoderUrl: (&url.URL{}).String(),
648+
CoderUrl: (&url.URL{}).String(),
649+
WorkspaceOwnerGroups: []string{database.EveryoneGroup},
647650
},
648651
},
649652
})

0 commit comments

Comments
 (0)