@@ -1567,7 +1567,7 @@ public CachedQueryResult.PolicyValues apply(String s) {
1567
1567
expectedKeys ++;
1568
1568
}
1569
1569
}
1570
- assertEquals (keyValueMap . size () - expectedKeys , removalListener .evictionsMetric .count ());
1570
+ assertEquals (0 , removalListener .evictionsMetric .count ());
1571
1571
assertEquals (0 , getHitsForTier (tieredSpilloverCache , TIER_DIMENSION_VALUE_ON_HEAP ));
1572
1572
assertEquals (expectedKeys , tieredSpilloverCache .count ());
1573
1573
@@ -1657,8 +1657,7 @@ public void testEntryPoliciesWithPut() throws Exception {
1657
1657
1658
1658
assertEquals (0 , getEvictionsForTier (tieredSpilloverCache , TIER_DIMENSION_VALUE_ON_HEAP ));
1659
1659
assertEquals (expectedKeys , getTotalStatsSnapshot (tieredSpilloverCache ).getItems ());
1660
- assertEquals (keyValuePairs .size () - expectedKeys , removalListener .evictionsMetric .count ()); // Policy rejects should send a removal
1661
- // notification
1660
+ assertEquals (0 , removalListener .evictionsMetric .count ());
1662
1661
}
1663
1662
1664
1663
public void testEntryPoliciesConcurrentlyWithComputeIfAbsent () throws Exception {
@@ -1745,8 +1744,7 @@ public void testEntryPoliciesConcurrentlyWithComputeIfAbsent() throws Exception
1745
1744
1746
1745
assertEquals (0 , getEvictionsForTier (tieredSpilloverCache , TIER_DIMENSION_VALUE_ON_HEAP ));
1747
1746
assertEquals (expectedKeys , getTotalStatsSnapshot (tieredSpilloverCache ).getItems ());
1748
- // Policy rejects should send a removal notification every time the caller attempts to put them in
1749
- assertEquals ((keyValuePairs .size () - expectedKeys ) * numRepetitionsPerKey , removalListener .evictionsMetric .count ());
1747
+ assertEquals (0 , removalListener .evictionsMetric .count ());
1750
1748
}
1751
1749
1752
1750
public void testPutWithDiskCacheDisabledSetting () throws Exception {
0 commit comments