ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sboi...@apache.org
Subject incubator-ignite git commit: #ignite-373: Small changes in test.
Date Wed, 13 May 2015 15:47:34 GMT
Repository: incubator-ignite
Updated Branches:
  refs/heads/ignite-373 21b7598f4 -> 2c1f265b1


#ignite-373: Small changes in 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/2c1f265b
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ignite/tree/2c1f265b
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ignite/diff/2c1f265b

Branch: refs/heads/ignite-373
Commit: 2c1f265b1bd36008ab59d59a70332b7764dc6431
Parents: 21b7598
Author: ivasilinets <ivasilinets@gridgain.com>
Authored: Wed May 13 18:47:29 2015 +0300
Committer: ivasilinets <ivasilinets@gridgain.com>
Committed: Wed May 13 18:47:29 2015 +0300

----------------------------------------------------------------------
 .../cache/distributed/near/NoneRebalanceModeSelfTest.java        | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/2c1f265b/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/distributed/near/NoneRebalanceModeSelfTest.java
----------------------------------------------------------------------
diff --git a/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/distributed/near/NoneRebalanceModeSelfTest.java
b/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/distributed/near/NoneRebalanceModeSelfTest.java
index 8a7fd5f..d61ddcc 100644
--- a/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/distributed/near/NoneRebalanceModeSelfTest.java
+++ b/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/distributed/near/NoneRebalanceModeSelfTest.java
@@ -23,6 +23,7 @@ import org.apache.ignite.internal.processors.cache.distributed.dht.*;
 import org.apache.ignite.testframework.junits.common.*;
 
 import static org.apache.ignite.cache.CacheRebalanceMode.*;
+import static org.apache.ignite.internal.processors.cache.distributed.dht.GridDhtPartitionState.*;
 
 /**
  * Test none rebalance mode.
@@ -58,7 +59,8 @@ public class NoneRebalanceModeSelfTest extends GridCommonAbstractTest {
     public void testRemoveAll() throws Exception {
         GridNearTransactionalCache cache = (GridNearTransactionalCache)((IgniteKernal)grid(0)).internalCache(null);
 
-        assert cache.dht().topology().localPartitions().get(0).state() == GridDhtPartitionState.MOVING;
+        for (GridDhtLocalPartition part : cache.dht().topology().localPartitions())
+            assertEquals(MOVING, part.state());
 
         grid(0).cache(null).removeAll();
     }


Mime
View raw message