Repository: ignite
Updated Branches:
  refs/heads/master 64558d8d3 -> bdcbbeee1


ignite-7606: unit test fix - Fixes #3508.

Signed-off-by: Alexey Goncharuk <alexey.goncha...@gmail.com>


Project: http://git-wip-us.apache.org/repos/asf/ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/bdcbbeee
Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/bdcbbeee
Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/bdcbbeee

Branch: refs/heads/master
Commit: bdcbbeee1a6f6fefdc97c2891d55f7d1fb849470
Parents: 64558d8
Author: dpavlov <dpav...@gridgain.com>
Authored: Mon Feb 12 18:53:30 2018 +0300
Committer: Alexey Goncharuk <alexey.goncha...@gmail.com>
Committed: Mon Feb 12 18:53:30 2018 +0300

----------------------------------------------------------------------
 .../pagemem/IgnitePageMemReplaceDelayedWriteUnitTest.java      | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/bdcbbeee/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/persistence/pagemem/IgnitePageMemReplaceDelayedWriteUnitTest.java
----------------------------------------------------------------------
diff --git 
a/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/persistence/pagemem/IgnitePageMemReplaceDelayedWriteUnitTest.java
 
b/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/persistence/pagemem/IgnitePageMemReplaceDelayedWriteUnitTest.java
index 94e30e7..a87a61e 100644
--- 
a/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/persistence/pagemem/IgnitePageMemReplaceDelayedWriteUnitTest.java
+++ 
b/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/persistence/pagemem/IgnitePageMemReplaceDelayedWriteUnitTest.java
@@ -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();
 

Reply via email to