ignite-2588 Test fixed
Project: http://git-wip-us.apache.org/repos/asf/ignite/repo Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/befb9de8 Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/befb9de8 Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/befb9de8 Branch: refs/heads/ignite-2407 Commit: befb9de80c798f20401f9f898836de0b4220cbac Parents: b2e510a Author: agura <[email protected]> Authored: Mon Feb 8 19:22:51 2016 +0300 Committer: agura <[email protected]> Committed: Fri Feb 12 19:30:00 2016 +0300 ---------------------------------------------------------------------- .../apache/ignite/internal/GridAffinityNoCacheSelfTest.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ignite/blob/befb9de8/modules/core/src/test/java/org/apache/ignite/internal/GridAffinityNoCacheSelfTest.java ---------------------------------------------------------------------- diff --git a/modules/core/src/test/java/org/apache/ignite/internal/GridAffinityNoCacheSelfTest.java b/modules/core/src/test/java/org/apache/ignite/internal/GridAffinityNoCacheSelfTest.java index 5561f35..25b637b 100644 --- a/modules/core/src/test/java/org/apache/ignite/internal/GridAffinityNoCacheSelfTest.java +++ b/modules/core/src/test/java/org/apache/ignite/internal/GridAffinityNoCacheSelfTest.java @@ -101,7 +101,7 @@ public class GridAffinityNoCacheSelfTest extends GridCommonAbstractTest { /** * @param key Key. */ - private void checkAffinityImplCacheDeleted(Object key) throws InterruptedException{ + private void checkAffinityImplCacheDeleted(Object key) throws InterruptedException { IgniteEx grid = grid(0); final String cacheName = "cacheToBeDeleted"; @@ -118,7 +118,9 @@ public class GridAffinityNoCacheSelfTest extends GridCommonAbstractTest { grid.cache(cacheName).destroy(); - assertAffinityMethodsException(affinity, key, n); + awaitPartitionMapExchange(); + + assertAffinityMethodsException(grid.affinity(cacheName), key, n); } /**
