Skip to content

Commit 3da5122

Browse files
skj-skjCopilot
andauthored
Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent dad0849 commit 3da5122

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

admin_setting_scim_token_integration_test.go

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,9 +139,13 @@ func TestAdminSCIMTokens_List(t *testing.T) {
139139

140140
var expectedIDs []string
141141
var actualIDs []string
142-
for i, token := range scimTokens {
142+
for _, listedToken := range tokenList.Items {
143+
actualIDs = append(actualIDs, listedToken.ID)
144+
}
145+
146+
for _, token := range scimTokens {
143147
expectedIDs = append(expectedIDs, token.ID)
144-
actualIDs = append(actualIDs, tokenList.Items[i].ID)
148+
assert.Contains(t, actualIDs, token.ID)
145149
}
146150

147151
assert.Subset(t, actualIDs, expectedIDs)

0 commit comments

Comments
 (0)