# Cleanup code.
Project: http://git-wip-us.apache.org/repos/asf/incubator-ignite/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-ignite/commit/10be1407 Tree: http://git-wip-us.apache.org/repos/asf/incubator-ignite/tree/10be1407 Diff: http://git-wip-us.apache.org/repos/asf/incubator-ignite/diff/10be1407 Branch: refs/heads/ignite-573 Commit: 10be14075582610ac397836c23c624d760167881 Parents: c3768f7 Author: sevdokimov <sevdoki...@gridgain.com> Authored: Wed Mar 25 15:05:18 2015 +0300 Committer: sevdokimov <sevdoki...@gridgain.com> Committed: Wed Mar 25 15:06:40 2015 +0300 ---------------------------------------------------------------------- .../cache/distributed/GridCacheEventAbstractTest.java | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/10be1407/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/distributed/GridCacheEventAbstractTest.java ---------------------------------------------------------------------- diff --git a/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/distributed/GridCacheEventAbstractTest.java b/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/distributed/GridCacheEventAbstractTest.java index 50d525a..f956dc8 100644 --- a/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/distributed/GridCacheEventAbstractTest.java +++ b/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/distributed/GridCacheEventAbstractTest.java @@ -30,7 +30,6 @@ import org.apache.ignite.internal.util.typedef.internal.*; import org.apache.ignite.lang.*; import org.apache.ignite.transactions.*; -import javax.cache.*; import java.util.*; import java.util.concurrent.*; import java.util.concurrent.atomic.*; @@ -107,7 +106,7 @@ public abstract class GridCacheEventAbstractTest extends GridCacheAbstractSelfTe private void waitForEvents(int gridIdx, IgniteBiTuple<Integer, Integer>... evtCnts) throws Exception { if (!F.isEmpty(evtCnts)) try { - TestEventListener.waitForEventCount(((IgniteKernal)grid(0)).context(), evtCnts); + TestEventListener.waitForEventCount(evtCnts); } catch (IgniteCheckedException e) { printEventCounters(gridIdx, evtCnts); @@ -821,12 +820,11 @@ public abstract class GridCacheEventAbstractTest extends GridCacheAbstractSelfTe /** * Waits for event count. * - * @param ctx Kernal context. * @param evtCnts Array of tuples with values: V1 - event type, V2 - expected event count. * @throws IgniteCheckedException If failed to wait. */ - private static void waitForEventCount(GridKernalContext ctx, - IgniteBiTuple<Integer, Integer>... evtCnts) throws IgniteCheckedException { + private static void waitForEventCount(IgniteBiTuple<Integer, Integer>... evtCnts) + throws IgniteCheckedException { if (F.isEmpty(evtCnts)) return;