ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sboi...@apache.org
Subject [08/11] incubator-ignite git commit: # IGNITE-709 Add temporary code to understand fail of the test.
Date Tue, 19 May 2015 19:40:00 GMT
# IGNITE-709 Add temporary code to understand fail of the 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/a48dd264
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ignite/tree/a48dd264
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ignite/diff/a48dd264

Branch: refs/heads/ignite-23
Commit: a48dd2648d1c83bd2cb63309718e0212fbc0994b
Parents: 8972acd
Author: sevdokimov <sevdokimov@gridgain.com>
Authored: Tue May 19 14:00:16 2015 +0300
Committer: sevdokimov <sevdokimov@gridgain.com>
Committed: Tue May 19 14:00:16 2015 +0300

----------------------------------------------------------------------
 .../discovery/GridDiscoveryManagerAttributesSelfTest.java     | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/a48dd264/modules/core/src/test/java/org/apache/ignite/internal/managers/discovery/GridDiscoveryManagerAttributesSelfTest.java
----------------------------------------------------------------------
diff --git a/modules/core/src/test/java/org/apache/ignite/internal/managers/discovery/GridDiscoveryManagerAttributesSelfTest.java
b/modules/core/src/test/java/org/apache/ignite/internal/managers/discovery/GridDiscoveryManagerAttributesSelfTest.java
index 77e6d52..2698eca 100644
--- a/modules/core/src/test/java/org/apache/ignite/internal/managers/discovery/GridDiscoveryManagerAttributesSelfTest.java
+++ b/modules/core/src/test/java/org/apache/ignite/internal/managers/discovery/GridDiscoveryManagerAttributesSelfTest.java
@@ -127,7 +127,8 @@ public abstract class GridDiscoveryManagerAttributesSelfTest extends GridCommonA
             fail();
         }
         catch (IgniteCheckedException e) {
-            assertTrue(e.getCause().getMessage().startsWith("Remote node has deployment mode
different from"));
+            if (!e.getCause().getMessage().startsWith("Remote node has deployment mode different
from"))
+                throw e;
         }
     }
 
@@ -145,8 +146,8 @@ public abstract class GridDiscoveryManagerAttributesSelfTest extends GridCommonA
             fail();
         }
         catch (IgniteCheckedException e) {
-            assertTrue(e.getCause().getMessage().startsWith("Remote node has peer class loading
enabled flag " +
-                "different from"));
+            if (!e.getCause().getMessage().startsWith("Remote node has peer class loading
enabled flag different from"))
+                throw e;
         }
     }
 


Mime
View raw message