You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by st...@apache.org on 2015/11/05 09:59:04 UTC

svn commit: r1712724 - /sling/trunk/bundles/extensions/discovery/base/src/test/java/org/apache/sling/discovery/base/its/AbstractDiscoveryServiceTest.java

Author: stefanegli
Date: Thu Nov  5 08:59:04 2015
New Revision: 1712724

URL: http://svn.apache.org/viewvc?rev=1712724&view=rev
Log:
SLING-5264 : increasing timeouts to account for slowness of jenkins

Modified:
    sling/trunk/bundles/extensions/discovery/base/src/test/java/org/apache/sling/discovery/base/its/AbstractDiscoveryServiceTest.java

Modified: sling/trunk/bundles/extensions/discovery/base/src/test/java/org/apache/sling/discovery/base/its/AbstractDiscoveryServiceTest.java
URL: http://svn.apache.org/viewvc/sling/trunk/bundles/extensions/discovery/base/src/test/java/org/apache/sling/discovery/base/its/AbstractDiscoveryServiceTest.java?rev=1712724&r1=1712723&r2=1712724&view=diff
==============================================================================
--- sling/trunk/bundles/extensions/discovery/base/src/test/java/org/apache/sling/discovery/base/its/AbstractDiscoveryServiceTest.java (original)
+++ sling/trunk/bundles/extensions/discovery/base/src/test/java/org/apache/sling/discovery/base/its/AbstractDiscoveryServiceTest.java Thu Nov  5 08:59:04 2015
@@ -252,7 +252,7 @@ public abstract class AbstractDiscoveryS
 
     @Test
     public void testSingleInstance() throws Throwable {
-        Tester single = newInstance("single", 1, 4, 50, null);
+        Tester single = newInstance("single", 1, 5, 50, null);
         single.instance.dumpRepo();
         startRetryLoop(testers, 10);
         single.assertNoFailures();
@@ -261,9 +261,9 @@ public abstract class AbstractDiscoveryS
     
     @Test
     public void testTwoInstances() throws Throwable {
-        Tester i1 = newInstance("i1", 1, 4, 100, null);
-        Tester i2 = newInstance("i2", 1, 4, 100, i1.instance);
-        startRetryLoop(testers, 10);
+        Tester i1 = newInstance("i1", 1, 10, 100, null);
+        Tester i2 = newInstance("i2", 1, 10, 100, i1.instance);
+        startRetryLoop(testers, 15);
         i1.instance.dumpRepo();
         i1.assertNoFailures();
         i2.assertNoFailures();
@@ -272,11 +272,11 @@ public abstract class AbstractDiscoveryS
 
     @Test
     public void testTenInstances() throws Throwable {
-        Tester i1 = newInstance("i1", 1, 6, 250, null);
+        Tester i1 = newInstance("i1", 1, 30, 250, null);
         for(int i=2; i<=10; i++) {
-            Tester in = newInstance("i"+i, 1, 6, 250, i1.instance);
+            Tester in = newInstance("i"+i, 1, 30, 250, i1.instance);
         }
-        startRetryLoop(testers, 10);
+        startRetryLoop(testers, 60);
         i1.instance.dumpRepo();
         i1.assertNoFailures();
         assertStableTopology(testers.toArray(new Tester[0]));
@@ -284,11 +284,11 @@ public abstract class AbstractDiscoveryS
 
     @Test
     public void testTwentyInstances() throws Throwable {
-        Tester i1 = newInstance("i1", 1, 20, 1000, null);
+        Tester i1 = newInstance("i1", 1, 60, 1000, null);
         for(int i=2; i<=20; i++) {
-            Tester in = newInstance("i"+i, 1, 20, 1000, i1.instance);
+            Tester in = newInstance("i"+i, 1, 60, 1000, i1.instance);
         }
-        startRetryLoop(testers, 40);
+        startRetryLoop(testers, 80);
         i1.instance.dumpRepo();
         i1.assertNoFailures();
         assertStableTopology(testers.toArray(new Tester[0]));
@@ -296,12 +296,12 @@ public abstract class AbstractDiscoveryS
 
     @Test
     public void testThirtyInstances() throws Throwable {
-        Tester i1 = newInstance("i1", 4, 60, 1000, null);
+        Tester i1 = newInstance("i1", 4, 120, 1000, null);
         for(int i=2; i<=30; i++) {
-            Tester in = newInstance("i"+i, 4, 60, 2000, i1.instance);
+            Tester in = newInstance("i"+i, 4, 120, 2000, i1.instance);
             Thread.sleep(1000);
         }
-        startRetryLoop(testers, 100);
+        startRetryLoop(testers, 180);
         i1.instance.dumpRepo();
         i1.assertNoFailures();
         assertStableTopology(testers.toArray(new Tester[0]));