ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sboi...@apache.org
Subject [1/2] incubator-ignite git commit: #nodejs: add tcp ip finder to test
Date Sun, 07 Jun 2015 21:20:09 GMT
Repository: incubator-ignite
Updated Branches:
  refs/heads/ignite-nodejs 83112f876 -> bf7812e13


#nodejs: add tcp ip finder to test


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

Branch: refs/heads/ignite-nodejs
Commit: 0be954f6944cfe82282a7bcdc0c0d7d0f106e07e
Parents: 83112f8
Author: ivasilinets <ivasilinets@gridgain.com>
Authored: Mon Jun 8 00:16:53 2015 +0300
Committer: ivasilinets <ivasilinets@gridgain.com>
Committed: Mon Jun 8 00:16:53 2015 +0300

----------------------------------------------------------------------
 .../org/apache/ignite/internal/NodeJsAbstractTest.java  | 12 ++++++++++++
 1 file changed, 12 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/0be954f6/modules/nodejs/src/test/java/org/apache/ignite/internal/NodeJsAbstractTest.java
----------------------------------------------------------------------
diff --git a/modules/nodejs/src/test/java/org/apache/ignite/internal/NodeJsAbstractTest.java
b/modules/nodejs/src/test/java/org/apache/ignite/internal/NodeJsAbstractTest.java
index 3600fc6..1ca1bed 100644
--- a/modules/nodejs/src/test/java/org/apache/ignite/internal/NodeJsAbstractTest.java
+++ b/modules/nodejs/src/test/java/org/apache/ignite/internal/NodeJsAbstractTest.java
@@ -22,6 +22,9 @@ import org.apache.ignite.configuration.*;
 import org.apache.ignite.internal.util.*;
 import org.apache.ignite.internal.util.typedef.*;
 import org.apache.ignite.internal.util.typedef.internal.*;
+import org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi;
+import org.apache.ignite.spi.discovery.tcp.ipfinder.TcpDiscoveryIpFinder;
+import org.apache.ignite.spi.discovery.tcp.ipfinder.vm.TcpDiscoveryVmIpFinder;
 import org.apache.ignite.testframework.junits.common.*;
 
 import java.util.*;
@@ -45,6 +48,9 @@ public class NodeJsAbstractTest extends GridCommonAbstractTest {
     /** Node JS file with tests. */
     private String fileName;
 
+    /** */
+    private static final TcpDiscoveryIpFinder IP_FINDER = new TcpDiscoveryVmIpFinder(true);
+
     /**
      * @param fileName Node JS file name.
      */
@@ -63,6 +69,12 @@ public class NodeJsAbstractTest extends GridCommonAbstractTest {
 
         cfg.setConnectorConfiguration(conCfg);
 
+        TcpDiscoverySpi disco = new TcpDiscoverySpi();
+
+        disco.setIpFinder(IP_FINDER);
+
+        cfg.setDiscoverySpi(disco);
+
         return cfg;
     }
 


Mime
View raw message