Additional test changes based on whether mocking is enabled or not.
This commit is contained in:
@@ -125,7 +125,11 @@ public class RegionEvictionAttributesNamespaceTest {
|
||||
assertNotNull(six.getAttributes().getEvictionAttributes());
|
||||
assertEquals(EvictionAction.OVERFLOW_TO_DISK, six.getAttributes().getEvictionAttributes().getAction());
|
||||
assertEquals(EvictionAlgorithm.LRU_MEMORY, six.getAttributes().getEvictionAttributes().getAlgorithm());
|
||||
assertEquals(256, six.getAttributes().getEvictionAttributes().getMaximum());
|
||||
|
||||
int expectedMaximum = (Boolean.getBoolean("org.springframework.data.gemfire.test.GemfireTestRunner.nomock")
|
||||
? 512 : 256);
|
||||
|
||||
assertEquals(expectedMaximum, six.getAttributes().getEvictionAttributes().getMaximum());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
<gfe:eviction threshold="128" type="MEMORY_SIZE"/>
|
||||
</gfe:replicated-region>
|
||||
|
||||
<gfe:partitioned-region id="Six">
|
||||
<gfe:partitioned-region id="Six" local-max-memory="512">
|
||||
<gfe:eviction threshold="256" type="MEMORY_SIZE" action="OVERFLOW_TO_DISK"/>
|
||||
</gfe:partitioned-region>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user