Skip to content

Commit

Permalink
because of edgecase re: string deduplication and identical value, ran…
Browse files Browse the repository at this point in the history
…domize replacement value
  • Loading branch information
magibney committed Dec 9, 2024
1 parent c2abbc6 commit 7da88bd
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ public void testRamBytesSync() throws IOException {

cache.put(0, "test");
long nonEmptySize = cache.ramBytesUsed();
cache.put(0, "test");
cache.put(0, random().nextBoolean() ? "test" : "rest");
assertEquals(nonEmptySize, cache.ramBytesUsed());

cache.remove(0);
Expand Down Expand Up @@ -341,7 +341,7 @@ public void testRamBytesAsync() throws IOException {

cache.put(0, "test");
long nonEmptySize = cache.ramBytesUsed();
cache.put(0, "test");
cache.put(0, random().nextBoolean() ? "test" : "rest");
assertEquals(nonEmptySize, cache.ramBytesUsed());

cache.remove(0);
Expand Down

0 comments on commit 7da88bd

Please sign in to comment.