You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ignite.apache.org by iv...@apache.org on 2015/07/13 19:24:44 UTC

incubator-ignite git commit: #ignite-1087: fix test.

Repository: incubator-ignite
Updated Branches:
  refs/heads/ignite-1087 7e95c5fc7 -> 715ba5403


#ignite-1087: fix test.


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

Branch: refs/heads/ignite-1087
Commit: 715ba5403f769f7075041c43255db5bf7fdcee59
Parents: 7e95c5f
Author: ivasilinets <iv...@gridgain.com>
Authored: Mon Jul 13 20:24:34 2015 +0300
Committer: ivasilinets <iv...@gridgain.com>
Committed: Mon Jul 13 20:24:34 2015 +0300

----------------------------------------------------------------------
 .../processors/cache/CacheAffinityCallSelfTest.java      | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/715ba540/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/CacheAffinityCallSelfTest.java
----------------------------------------------------------------------
diff --git a/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/CacheAffinityCallSelfTest.java b/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/CacheAffinityCallSelfTest.java
index c4436ca..c66efb1 100644
--- a/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/CacheAffinityCallSelfTest.java
+++ b/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/CacheAffinityCallSelfTest.java
@@ -45,7 +45,7 @@ public class CacheAffinityCallSelfTest extends GridCommonAbstractTest {
     private static final String CACHE_NAME = "myCache";
 
     /** */
-    private static final int MAX_FAILOVER_ATTEMPTS = 5;
+    private static final int MAX_FAILOVER_ATTEMPTS = 25;
 
     /** */
     private static final int SERVERS_COUNT = 4;
@@ -132,13 +132,16 @@ public class CacheAffinityCallSelfTest extends GridCommonAbstractTest {
                 client.compute().affinityCall(CACHE_NAME, key, new CheckCallable(key));
         }
         catch (ComputeTaskCancelledException e) {
-            assertTrue(e.getMessage().contains("stopping"));
+            assertTrue("Incorrect error message. [mes=" + e.getMessage() + "]."),
+                    e.getMessage().contains("stopping"));
         }
         catch(ClusterGroupEmptyException e) {
-            assertTrue(e.getMessage().contains("Topology projection is empty"));
+            assertTrue("Incorrect error message. [mes=" + e.getMessage() + "]."),
+                    e.getMessage().contains("Topology projection is empty"));
         }
         catch(IgniteException e) {
-            assertTrue(e.getMessage().contains("cache (or node) is stopping"));
+            assertTrue("Incorrect error message. [mes=" + e.getMessage() + "]."),
+                    e.getMessage().contains("cache (or node) is stopping"));
         }
 
         stopGrid(SERVERS_COUNT);