fix: only allow promoting successful template versions (#9998)

This commit is contained in:
Kayla Washburn
2023-10-05 10:49:25 -06:00
committed by GitHub
parent 48ee80a559
commit f001a57614
9 changed files with 201 additions and 39 deletions
-1
View File
@@ -428,7 +428,6 @@ func TestPostWorkspacesByOrganization(t *testing.T) {
t.Parallel()
client := coderdtest.New(t, nil)
first := coderdtest.CreateFirstUser(t, client)
other, _ := coderdtest.CreateAnotherUser(t, client, first.OrganizationID, rbac.RoleMember(), rbac.RoleOwner())
ctx, cancel := context.WithTimeout(context.Background(), testutil.WaitLong)