Skip to content

Commit

Permalink
Knox 3069 (#939)
Browse files Browse the repository at this point in the history
* KNOX-3069 - add a sleep to ensure uniqueness
  • Loading branch information
lmccay authored Oct 11, 2024
1 parent 9b34e27 commit 89b7139
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1143,6 +1143,8 @@ private void testLimitingTokensPerUser(int configuredLimit, int numberOfTokens,
assertNotNull("TokenID should not be null", tokenId);
assertFalse("TokenID must be unique", tokenIDs.contains(tokenId));
tokenIDs.add(tokenId);

Thread.sleep(5);
}
final Response getKnoxTokensResponse = getUserTokensResponse(tr);
final Collection<String> tokens = ((Map<String, Collection<String>>) JsonUtils.getObjectFromJsonString(getKnoxTokensResponse.getEntity().toString()))
Expand Down

0 comments on commit 89b7139

Please sign in to comment.