You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ignite.apache.org by ag...@apache.org on 2015/10/13 18:41:58 UTC
[6/7] ignite git commit: ignite-1016 Tests for local cache fixed
ignite-1016 Tests for local cache fixed
Project: http://git-wip-us.apache.org/repos/asf/ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/7a317c7c
Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/7a317c7c
Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/7a317c7c
Branch: refs/heads/pull-80-head
Commit: 7a317c7c59884d1437f34d9853310bad1b1f7206
Parents: 8f718a2
Author: agura <ag...@gridgain.com>
Authored: Mon Sep 14 18:20:22 2015 +0300
Committer: agura <ag...@gridgain.com>
Committed: Mon Sep 14 18:20:22 2015 +0300
----------------------------------------------------------------------
.../processors/cache/IgniteCacheAbstractQuerySelfTest.java | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/ignite/blob/7a317c7c/modules/indexing/src/test/java/org/apache/ignite/internal/processors/cache/IgniteCacheAbstractQuerySelfTest.java
----------------------------------------------------------------------
diff --git a/modules/indexing/src/test/java/org/apache/ignite/internal/processors/cache/IgniteCacheAbstractQuerySelfTest.java b/modules/indexing/src/test/java/org/apache/ignite/internal/processors/cache/IgniteCacheAbstractQuerySelfTest.java
index 42173e3..f3fbf15 100644
--- a/modules/indexing/src/test/java/org/apache/ignite/internal/processors/cache/IgniteCacheAbstractQuerySelfTest.java
+++ b/modules/indexing/src/test/java/org/apache/ignite/internal/processors/cache/IgniteCacheAbstractQuerySelfTest.java
@@ -179,7 +179,9 @@ public abstract class IgniteCacheAbstractQuerySelfTest extends GridCommonAbstrac
UUID.class, Person.class,
IgniteCacheReplicatedQuerySelfTest.CacheKey.class, IgniteCacheReplicatedQuerySelfTest.CacheValue.class
);
- cc.setAffinity(new RendezvousAffinityFunction());
+
+ if (cacheMode() != CacheMode.LOCAL)
+ cc.setAffinity(new RendezvousAffinityFunction());
// Explicitly set number of backups equal to number of grids.
if (cacheMode() == CacheMode.PARTITIONED)