ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From se...@apache.org
Subject [49/50] incubator-ignite git commit: #Fixed metrics tests.
Date Thu, 12 Feb 2015 13:51:48 GMT
#Fixed metrics tests.


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

Branch: refs/heads/ignite-sql-tests
Commit: c049edb0bd43a5fe2dd518980521a701b9ae596f
Parents: efb5272
Author: nikolay_tikhonov <ntikhonov@gridgain.com>
Authored: Thu Feb 12 15:56:12 2015 +0300
Committer: nikolay_tikhonov <ntikhonov@gridgain.com>
Committed: Thu Feb 12 15:56:29 2015 +0300

----------------------------------------------------------------------
 .../processors/cache/GridCacheAbstractMetricsSelfTest.java    | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/c049edb0/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/GridCacheAbstractMetricsSelfTest.java
----------------------------------------------------------------------
diff --git a/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/GridCacheAbstractMetricsSelfTest.java
b/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/GridCacheAbstractMetricsSelfTest.java
index 39c63aa..d4e4dc1 100644
--- a/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/GridCacheAbstractMetricsSelfTest.java
+++ b/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/GridCacheAbstractMetricsSelfTest.java
@@ -890,8 +890,13 @@ public abstract class GridCacheAbstractMetricsSelfTest extends GridCacheAbstract
             }
         }, Math.min(ttl * 10, getTestTimeout())));
 
+        c0 = ((IgniteKernal)grid(0)).internalCache();
+
+        if (c0.isNear())
+            c0 = c0.context().near().dht();
+
         // Ensure that old TTL and expire time are not longer "visible".
-        entry = ((IgniteKernal)grid(0)).internalCache().entryEx(key);
+        entry = c0.entryEx(key);
 
         assertEquals(0, entry.ttl());
         assertEquals(0, entry.expireTime());


Mime
View raw message