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: ignite-709: adjusted tests
Date Mon, 20 Jul 2015 13:58:40 GMT
Repository: incubator-ignite
Updated Branches:
  refs/heads/ignite-1003 632a9c7f0 -> ad8ae4b3c


ignite-709: adjusted 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/ad8ae4b3
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ignite/tree/ad8ae4b3
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ignite/diff/ad8ae4b3

Branch: refs/heads/ignite-1003
Commit: ad8ae4b3c64f7739a0b0349990cd10bdf1f81c45
Parents: 632a9c7
Author: Denis Magda <dmagda@gridgain.com>
Authored: Mon Jul 20 16:58:06 2015 +0300
Committer: Denis Magda <dmagda@gridgain.com>
Committed: Mon Jul 20 16:58:06 2015 +0300

----------------------------------------------------------------------
 .../tcp/TcpDiscoveryMultiThreadedTest.java        | 18 ++++++++++--------
 1 file changed, 10 insertions(+), 8 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/ad8ae4b3/modules/core/src/test/java/org/apache/ignite/spi/discovery/tcp/TcpDiscoveryMultiThreadedTest.java
----------------------------------------------------------------------
diff --git a/modules/core/src/test/java/org/apache/ignite/spi/discovery/tcp/TcpDiscoveryMultiThreadedTest.java
b/modules/core/src/test/java/org/apache/ignite/spi/discovery/tcp/TcpDiscoveryMultiThreadedTest.java
index 46207e5..e977bed 100644
--- a/modules/core/src/test/java/org/apache/ignite/spi/discovery/tcp/TcpDiscoveryMultiThreadedTest.java
+++ b/modules/core/src/test/java/org/apache/ignite/spi/discovery/tcp/TcpDiscoveryMultiThreadedTest.java
@@ -80,13 +80,11 @@ public class TcpDiscoveryMultiThreadedTest extends GridCommonAbstractTest
{
             cfg.setClientMode(true);
 
             ArrayList<String> srvAddresses = new ArrayList<>();
-            srvAddresses.add("192.168.56.1:47500");
-            srvAddresses.add("192.168.56.1:47501");
-            srvAddresses.add("192.168.56.1:47502");
-            srvAddresses.add("192.168.56.1:47503");
-            srvAddresses.add("192.168.56.1:47504");
-            srvAddresses.add("192.168.56.1:47505");
-            srvAddresses.add("192.168.56.1:47506");
+
+            String addr = "192.168.56.1";
+
+            for (int i = 0; i < 8; i++)
+                srvAddresses.add(addr + ":4750" + i);
 
             ipFinder.setAddresses(srvAddresses);
 
@@ -95,7 +93,7 @@ public class TcpDiscoveryMultiThreadedTest extends GridCommonAbstractTest
{
         }
         else
             cfg.setDiscoverySpi(new TcpDiscoverySpi().setIpFinder(ipFinder).setNetworkTimeout(10_000).
-                setSocketTimeout(10_000).setHeartbeatFrequency(10_000).setLocalAddress("192.168.56.1"));
+                setSocketTimeout(10_000).setHeartbeatFrequency(10_000));
 
         TcpCommunicationSpi commSpi = new TcpCommunicationSpi();
         commSpi.setConnectTimeout(10_000);
@@ -112,6 +110,10 @@ public class TcpDiscoveryMultiThreadedTest extends GridCommonAbstractTest
{
         return cfg;
     }
 
+    @Override protected IgniteConfiguration optimize(IgniteConfiguration cfg) throws IgniteCheckedException
{
+        return cfg;
+    }
+
     /** {@inheritDoc} */
     @Override protected void afterTest() throws Exception {
         super.afterTest();


Mime
View raw message