ignite-7606: unit test fix - Fixes
@@ -55,7 +55,7 @@ import static org.mockito.Mockito.when;
*/
public class IgnitePageMemReplaceDelayedWriteUnitTest {
/** CPU count. */
- private static final int CPUS = Runtime.getRuntime().availableProcessors();
+ private static final int CPUS = 32;
/** 1 megabyte in bytes */
private static final long MB = 1024L * 1024;
@@ -72,7 +72,7 @@ public class IgnitePageMemReplaceDelayedWriteUnitTest {
*/
@Test
public void testReplacementWithDelayCausesLockForRead() throws IgniteCheckedException {
- IgniteConfiguration cfg = getConfiguration(MB);
+ IgniteConfiguration cfg = getConfiguration(16 * MB);
AtomicInteger totalEvicted = new AtomicInteger();
@@ -129,7 +129,7 @@ public class IgnitePageMemReplaceDelayedWriteUnitTest {
*/
@Test
public void testBackwardCompatibilityMode() throws IgniteCheckedException {
- IgniteConfiguration cfg = getConfiguration(MB);
+ IgniteConfiguration cfg = getConfiguration(16 * MB);
AtomicInteger totalEvicted = new AtomicInteger();
