ignite-7606: unit test fix - Fixes #3508.
authordpavlov <dpavlov@gridgain.com>
Mon, 12 Feb 2018 15:53:30 +0000 (18:53 +0300)
committerAlexey Goncharuk <alexey.goncharuk@gmail.com>
Mon, 12 Feb 2018 15:53:30 +0000 (18:53 +0300)
Signed-off-by: Alexey Goncharuk <alexey.goncharuk@gmail.com>
modules/core/src/test/java/org/apache/ignite/internal/processors/cache/persistence/pagemem/IgnitePageMemReplaceDelayedWriteUnitTest.java

index 94e30e7..a87a61e 100644 (file)
@@ -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();