Skip to content

Commit 356099b

Browse files
committed
fix test
1 parent bd4d483 commit 356099b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

coderd/httpmw/authorize_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,8 @@ func TestExtractUserRoles(t *testing.T) {
8989

9090
orgRoles := []string{}
9191
if i%2 == 0 {
92-
orgRoles = append(orgRoles, rbac.RoleOrgAdmin(organization.ID))
92+
orgRoles = append(orgRoles, rbac.StaticRoleOrgAdmin())
93+
roles = append(roles, rbac.RoleOrgAdmin(organization.ID))
9394
}
9495
_, err = db.InsertOrganizationMember(context.Background(), database.InsertOrganizationMemberParams{
9596
OrganizationID: organization.ID,
@@ -99,7 +100,6 @@ func TestExtractUserRoles(t *testing.T) {
99100
Roles: orgRoles,
100101
})
101102
require.NoError(t, err)
102-
roles = append(roles, orgRoles...)
103103
roles = append(roles, rbac.RoleOrgMember(organization.ID))
104104
}
105105
return user, roles, token

0 commit comments

Comments
 (0)