Skip to content

Commit f32c78c

Browse files
committed
linting
1 parent 438e69d commit f32c78c

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

cli/organization_test.go

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import (
77

88
"github.com/coder/coder/v2/cli/clitest"
99
"github.com/coder/coder/v2/coderd/coderdtest"
10+
"github.com/coder/coder/v2/coderd/rbac"
1011
"github.com/coder/coder/v2/codersdk"
1112
"github.com/coder/coder/v2/pty/ptytest"
1213
"github.com/coder/coder/v2/testutil"
@@ -17,8 +18,10 @@ func TestCurrentOrganization(t *testing.T) {
1718

1819
t.Run("OnlyID", func(t *testing.T) {
1920
t.Parallel()
20-
client := coderdtest.New(t, nil)
21-
first := coderdtest.CreateFirstUser(t, client)
21+
ownerClient := coderdtest.New(t, nil)
22+
first := coderdtest.CreateFirstUser(t, ownerClient)
23+
// Owner is required to make orgs
24+
client, _ := coderdtest.CreateAnotherUser(t, ownerClient, first.OrganizationID, rbac.RoleOwner())
2225

2326
ctx := testutil.Context(t, testutil.WaitMedium)
2427
orgs := []string{"foo", "bar"}

0 commit comments

Comments
 (0)