ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From voze...@apache.org
Subject [22/50] [abbrv] incubator-ignite git commit: ignite-96 minor
Date Thu, 12 Feb 2015 12:12:52 GMT
ignite-96 minor


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

Branch: refs/heads/ignite-191
Commit: 49cddf4aa291841ba365493c2aeb38446b0951d9
Parents: 9bfd7f1
Author: Yakov Zhdanov <yzhdanov@gridgain.com>
Authored: Wed Feb 11 18:20:21 2015 +0300
Committer: Yakov Zhdanov <yzhdanov@gridgain.com>
Committed: Wed Feb 11 18:20:21 2015 +0300

----------------------------------------------------------------------
 .../processors/cache/GridCacheAbstractFullApiSelfTest.java      | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/49cddf4a/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/GridCacheAbstractFullApiSelfTest.java
----------------------------------------------------------------------
diff --git a/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/GridCacheAbstractFullApiSelfTest.java
b/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/GridCacheAbstractFullApiSelfTest.java
index 6863835..f28babd 100644
--- a/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/GridCacheAbstractFullApiSelfTest.java
+++ b/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/GridCacheAbstractFullApiSelfTest.java
@@ -2896,7 +2896,10 @@ public abstract class GridCacheAbstractFullApiSelfTest extends GridCacheAbstract
         CacheAffinity<String> aff = ignite(0).affinity(null);
 
         for (int i = 0; i < gridCount(); i++) {
-            if (aff.isPrimaryOrBackup(grid(i).cluster().localNode(), key))
+            if (aff.isPrimary(grid(i).cluster().localNode(), key))
+                assertEquals((Integer)1, peek(jcache(i), key));
+
+            if (aff.isBackup(grid(i).cluster().localNode(), key))
                 assertEquals((Integer)1, peek(jcache(i), key));
         }
     }


Mime
View raw message