Skip to content

Commit

Permalink
minor UT refactor
Browse files Browse the repository at this point in the history
Signed-off-by: Sagar Upadhyaya <[email protected]>
  • Loading branch information
sgup432 committed Jun 25, 2024
1 parent c7881df commit 3686d2c
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1007,8 +1007,8 @@ public void testComputeIfAbsentWithDiskCacheThrowingExceptionOnPut() throws Exce
removalListener
);

String value = "";
value = tieredSpilloverCache.computeIfAbsent(getICacheKey("test"), new LoadAwareCacheLoader<>() {
String response = "";
response = tieredSpilloverCache.computeIfAbsent(getICacheKey("test"), new LoadAwareCacheLoader<>() {
@Override
public boolean isLoaded() {
return false;
Expand All @@ -1023,7 +1023,7 @@ public String load(ICacheKey<String> key) {

assertEquals(0, diskStats.getSizeInBytes());
assertEquals(1, removalListener.evictionsMetric.count());
assertEquals("test", value);
assertEquals("test", response);
assertEquals(0, tieredSpilloverCache.completableFutureMap.size());
}

Expand Down

0 comments on commit 3686d2c

Please sign in to comment.