ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sboi...@apache.org
Subject [02/23] ignite git commit: ignite-1.5 Added default address for TcpDiscoveryMulticastIpFinder.
Date Tue, 15 Dec 2015 13:27:12 GMT
ignite-1.5 Added default address for TcpDiscoveryMulticastIpFinder.


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

Branch: refs/heads/ignite-1537
Commit: 1100893a6f02ed7dede6cc3d3d8b71ba8e73dfeb
Parents: a3a8138
Author: sboikov <sboikov@gridgain.com>
Authored: Tue Dec 15 09:23:38 2015 +0300
Committer: sboikov <sboikov@gridgain.com>
Committed: Tue Dec 15 09:23:38 2015 +0300

----------------------------------------------------------------------
 .../ignite/testframework/junits/GridAbstractTest.java     | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/1100893a/modules/core/src/test/java/org/apache/ignite/testframework/junits/GridAbstractTest.java
----------------------------------------------------------------------
diff --git a/modules/core/src/test/java/org/apache/ignite/testframework/junits/GridAbstractTest.java
b/modules/core/src/test/java/org/apache/ignite/testframework/junits/GridAbstractTest.java
index b83cba9..99d1a42 100644
--- a/modules/core/src/test/java/org/apache/ignite/testframework/junits/GridAbstractTest.java
+++ b/modules/core/src/test/java/org/apache/ignite/testframework/junits/GridAbstractTest.java
@@ -1286,15 +1286,17 @@ public abstract class GridAbstractTest extends TestCase {
 
         String mcastAddr = GridTestUtils.getNextMulticastGroup(getClass());
 
-        if (!F.isEmpty(mcastAddr)) {
-            TcpDiscoveryMulticastIpFinder ipFinder = new TcpDiscoveryMulticastIpFinder();
+        TcpDiscoveryMulticastIpFinder ipFinder = new TcpDiscoveryMulticastIpFinder();
+
+        ipFinder.setAddresses(Collections.singleton("127.0.0.1:" + TcpDiscoverySpi.DFLT_PORT));
 
+        if (!F.isEmpty(mcastAddr)) {
             ipFinder.setMulticastGroup(mcastAddr);
             ipFinder.setMulticastPort(GridTestUtils.getNextMulticastPort(getClass()));
-
-            discoSpi.setIpFinder(ipFinder);
         }
 
+        discoSpi.setIpFinder(ipFinder);
+
         cfg.setDiscoverySpi(discoSpi);
 
         SharedFsCheckpointSpi cpSpi = new SharedFsCheckpointSpi();


Mime
View raw message