Skip to content

Commit

Permalink
Minor refactoring in unit test
Browse files Browse the repository at this point in the history
Signed-off-by: Sagar Upadhyaya <sagar.upadhyaya.121@gmail.com>
  • Loading branch information
sgup432 committed Mar 15, 2024
1 parent 65f14dc commit 64d2f94
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -499,12 +499,8 @@ public void testEhcacheKeyIteratorWithRemove() throws IOException {
.build();

int randomKeys = randomIntBetween(2, 100);
Map<String, String> keyValueMap = new HashMap<>();
for (int i = 0; i < randomKeys; i++) {
keyValueMap.put(UUID.randomUUID().toString(), UUID.randomUUID().toString());
}
for (Map.Entry<String, String> entry : keyValueMap.entrySet()) {
ehcacheTest.put(entry.getKey(), entry.getValue());
ehcacheTest.put(UUID.randomUUID().toString(), UUID.randomUUID().toString());
}
long originalSize = ehcacheTest.count();
assertEquals(randomKeys, originalSize);
Expand Down

0 comments on commit 64d2f94

Please sign in to comment.