Skip to content

Commit

Permalink
modified a test cas
Browse files Browse the repository at this point in the history
  • Loading branch information
duedares-rvj committed Aug 16, 2024
1 parent 9cf2217 commit ad45288
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 33 deletions.
2 changes: 1 addition & 1 deletion management/organization_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -518,7 +518,7 @@ func TestOrganizationManager_ClientGrantsWithOrg(t *testing.T) {
associatedGrants, err := api.Organization.ClientGrants(context.Background(), org.GetID(), Parameter("grant_ids", clientGrant.GetID()))
require.NoError(t, err)
assert.Greater(t, len(associatedGrants.ClientGrants), 0)
assert.Equal(t, clientGrant.GetID(), associatedGrants.ClientGrants[0].GetID())
assert.Contains(t, associatedGrants.ClientGrants, clientGrant)

clients, err := api.Client.List(context.Background(), Parameter("q", fmt.Sprintf("client_grant.organization_id:%s", org.GetID())))
require.NoError(t, err)
Expand Down
Loading

0 comments on commit ad45288

Please sign in to comment.