ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akuznet...@apache.org
Subject [15/24] ignite git commit: ignite-1.6 Fixed test IgniteCacheClientNodeChangingTopologyTest.testLock.
Date Tue, 17 May 2016 04:02:42 GMT
ignite-1.6 Fixed test IgniteCacheClientNodeChangingTopologyTest.testLock.


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

Branch: refs/heads/master
Commit: 90ae6023c4301840100c13e2a494c1c8ce401adf
Parents: 77e06a8
Author: sboikov <sboikov@gridgain.com>
Authored: Mon May 16 15:23:09 2016 +0300
Committer: sboikov <sboikov@gridgain.com>
Committed: Mon May 16 15:23:42 2016 +0300

----------------------------------------------------------------------
 .../IgniteCacheClientNodeChangingTopologyTest.java          | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/90ae6023/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/distributed/IgniteCacheClientNodeChangingTopologyTest.java
----------------------------------------------------------------------
diff --git a/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/distributed/IgniteCacheClientNodeChangingTopologyTest.java
b/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/distributed/IgniteCacheClientNodeChangingTopologyTest.java
index ce883b0..49c3289 100644
--- a/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/distributed/IgniteCacheClientNodeChangingTopologyTest.java
+++ b/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/distributed/IgniteCacheClientNodeChangingTopologyTest.java
@@ -1230,9 +1230,16 @@ public class IgniteCacheClientNodeChangingTopologyTest extends GridCommonAbstrac
 
         lockFut.get();
 
+        awaitPartitionMapExchange();
+
         boolean wait = GridTestUtils.waitForCondition(new GridAbsPredicate() {
             @Override public boolean apply() {
-                return unlocked(ignite0) && unlocked(ignite1);
+                for (int i = 0; i < 4; i++) {
+                    if (!unlocked(ignite(i)))
+                        return false;
+                }
+
+                return true;
             }
 
             private boolean unlocked(Ignite ignite) {


Mime
View raw message