ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sboi...@apache.org
Subject incubator-ignite git commit: #Fixed GridCacheAtomicTimeoutSelfTest.
Date Mon, 16 Mar 2015 08:43:59 GMT
Repository: incubator-ignite
Updated Branches:
  refs/heads/ignite-aop-test 524dd05c6 -> e84ffa0ce


#Fixed GridCacheAtomicTimeoutSelfTest.


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

Branch: refs/heads/ignite-aop-test
Commit: e84ffa0ce9268f325e6ce82e7fd16e4b87ccd6ed
Parents: 524dd05
Author: nikolay_tikhonov <ntikhonov@gridgain.com>
Authored: Mon Mar 16 11:43:50 2015 +0300
Committer: nikolay_tikhonov <ntikhonov@gridgain.com>
Committed: Mon Mar 16 11:43:50 2015 +0300

----------------------------------------------------------------------
 .../distributed/GridCacheAtomicTimeoutSelfTest.java   | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/e84ffa0c/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/distributed/GridCacheAtomicTimeoutSelfTest.java
----------------------------------------------------------------------
diff --git a/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/distributed/GridCacheAtomicTimeoutSelfTest.java
b/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/distributed/GridCacheAtomicTimeoutSelfTest.java
index 16b0515..2ff5683 100644
--- a/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/distributed/GridCacheAtomicTimeoutSelfTest.java
+++ b/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/distributed/GridCacheAtomicTimeoutSelfTest.java
@@ -32,6 +32,9 @@ import org.apache.ignite.plugin.extensions.communication.*;
 import org.apache.ignite.lang.*;
 import org.apache.ignite.spi.*;
 import org.apache.ignite.spi.communication.tcp.*;
+import org.apache.ignite.spi.discovery.tcp.*;
+import org.apache.ignite.spi.discovery.tcp.ipfinder.*;
+import org.apache.ignite.spi.discovery.tcp.ipfinder.vm.*;
 import org.apache.ignite.testframework.*;
 import org.apache.ignite.testframework.junits.common.*;
 
@@ -50,6 +53,9 @@ public class GridCacheAtomicTimeoutSelfTest extends GridCommonAbstractTest
{
     /** Grid count. */
     public static final int GRID_CNT = 3;
 
+    /** */
+    private static final TcpDiscoveryIpFinder IP_FINDER = new TcpDiscoveryVmIpFinder(true);
+
     /** {@inheritDoc} */
     @Override protected IgniteConfiguration getConfiguration(String gridName) throws Exception
{
         IgniteConfiguration cfg = super.getConfiguration(gridName);
@@ -67,6 +73,14 @@ public class GridCacheAtomicTimeoutSelfTest extends GridCommonAbstractTest
{
 
         cfg.setNetworkTimeout(3000);
 
+        TcpDiscoverySpi spi = new TcpDiscoverySpi();
+
+        spi.setIpFinder(IP_FINDER);
+
+        cfg.setCommunicationSpi(new TestCommunicationSpi());
+
+        cfg.setDiscoverySpi(spi);
+
         return cfg;
     }
 


Mime
View raw message