ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From se...@apache.org
Subject [12/50] incubator-ignite git commit: # Fix GridCachePartitionNotLoadedEventSelfTest: use ipFinder.
Date Thu, 23 Apr 2015 06:52:38 GMT
# Fix GridCachePartitionNotLoadedEventSelfTest: use ipFinder.


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

Branch: refs/heads/ignite-750
Commit: 6b57db0d9945a9b7b12134ba9beab51b15f58b56
Parents: bc025d9
Author: sevdokimov <sevdokimov@gridgain.com>
Authored: Tue Apr 21 11:51:30 2015 +0300
Committer: sevdokimov <sevdokimov@gridgain.com>
Committed: Tue Apr 21 11:51:30 2015 +0300

----------------------------------------------------------------------
 .../GridCachePartitionNotLoadedEventSelfTest.java         | 10 ++++++++++
 1 file changed, 10 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/6b57db0d/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/distributed/GridCachePartitionNotLoadedEventSelfTest.java
----------------------------------------------------------------------
diff --git a/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/distributed/GridCachePartitionNotLoadedEventSelfTest.java
b/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/distributed/GridCachePartitionNotLoadedEventSelfTest.java
index b2381f3..9d16030 100644
--- a/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/distributed/GridCachePartitionNotLoadedEventSelfTest.java
+++ b/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/distributed/GridCachePartitionNotLoadedEventSelfTest.java
@@ -23,6 +23,9 @@ import org.apache.ignite.cache.affinity.*;
 import org.apache.ignite.configuration.*;
 import org.apache.ignite.events.*;
 import org.apache.ignite.lang.*;
+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.junits.common.*;
 import org.eclipse.jetty.util.*;
 
@@ -33,12 +36,19 @@ import java.util.*;
  */
 public class GridCachePartitionNotLoadedEventSelfTest extends GridCommonAbstractTest {
     /** */
+    private static final TcpDiscoveryIpFinder ipFinder = new TcpDiscoveryVmIpFinder(true);
+
+    /** */
     private int backupCnt;
 
     /** {@inheritDoc} */
     @Override protected IgniteConfiguration getConfiguration(String gridName) throws Exception
{
         IgniteConfiguration cfg = super.getConfiguration(gridName);
 
+        TcpDiscoverySpi disco = new TcpDiscoverySpi();
+        disco.setIpFinder(ipFinder);
+        cfg.setDiscoverySpi(disco);
+
         if (gridName.matches(".*\\d")) {
             String idStr = UUID.randomUUID().toString();
 


Mime
View raw message