This is an automated email from the ASF dual-hosted git repository. rombert pushed a commit to annotated tag org.apache.sling.discovery.commons-1.0.10 in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-discovery-commons.git
commit 5c5f5e82622336c3582e5a5f4ac6e20d75dcffb5 Author: Stefan Egli <[email protected]> AuthorDate: Mon Nov 2 09:11:15 2015 +0000 SLING-5225 : increase wait times to avoid test failure on jenkins due to lower hardware speed git-svn-id: https://svn.apache.org/repos/asf/sling/trunk/bundles/extensions/discovery/commons@1711917 13f79535-47bb-0310-9956-ffa450edef68 --- .../commons/providers/spi/base/TestOakSyncTokenService.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/test/java/org/apache/sling/discovery/commons/providers/spi/base/TestOakSyncTokenService.java b/src/test/java/org/apache/sling/discovery/commons/providers/spi/base/TestOakSyncTokenService.java index b90c622..726dd95 100644 --- a/src/test/java/org/apache/sling/discovery/commons/providers/spi/base/TestOakSyncTokenService.java +++ b/src/test/java/org/apache/sling/discovery/commons/providers/spi/base/TestOakSyncTokenService.java @@ -134,7 +134,7 @@ public class TestOakSyncTokenService { assertEquals(0, l.countEvents()); cs.triggerBackgroundCheck(); DescriptorHelper.setDiscoveryLiteDescriptor(factory1, new DiscoveryLiteDescriptorBuilder().me(1).seq(1).activeIds(1).setFinal(true)); - assertTrue(idMapService1.waitForInit(2000)); + assertTrue(idMapService1.waitForInit(5000)); cs.triggerBackgroundCheck(); assertEquals(0, vsm.waitForAsyncEvents(1000)); assertEquals(1, l.countEvents()); @@ -175,15 +175,15 @@ public class TestOakSyncTokenService { cs2.triggerBackgroundCheck(); assertEquals(0, l.countEvents()); vsm2.handleActivated(); - assertTrue(idMapService1.waitForInit(2000)); - assertTrue(idMapService2.waitForInit(2000)); + assertTrue(idMapService1.waitForInit(5000)); + assertTrue(idMapService2.waitForInit(5000)); DummyTopologyView two2 = TestHelper.newView(two1.getLocalClusterSyncTokenId(), two1.getLocalInstance().getClusterView().getId(), true, slingId1, slingId1, slingId1, slingId2); vsm2.handleNewView(two2); cs1.triggerBackgroundCheck(); cs1.triggerBackgroundCheck(); cs2.triggerBackgroundCheck(); cs2.triggerBackgroundCheck(); - assertEquals(0, vsm1.waitForAsyncEvents(500)); + assertEquals(0, vsm1.waitForAsyncEvents(1000)); assertEquals(1, l.countEvents()); DummyTopologyView oneLeaving = two1.clone(); oneLeaving.removeInstance(slingId2); @@ -191,12 +191,12 @@ public class TestOakSyncTokenService { vsm1.handleNewView(oneLeaving); cs1.triggerBackgroundCheck(); cs2.triggerBackgroundCheck(); - assertEquals(0, vsm1.waitForAsyncEvents(2000)); + assertEquals(0, vsm1.waitForAsyncEvents(5000)); assertEquals(2, l.countEvents()); DescriptorHelper.setDiscoveryLiteDescriptor(factory1, new DiscoveryLiteDescriptorBuilder().setFinal(true).me(1).seq(2).activeIds(1).inactiveIds(2)); cs1.triggerBackgroundCheck(); cs2.triggerBackgroundCheck(); - assertEquals(0, vsm1.waitForAsyncEvents(2000)); + assertEquals(0, vsm1.waitForAsyncEvents(5000)); RepositoryTestHelper.dumpRepo(factory1); assertEquals(3, l.countEvents()); } -- To stop receiving notification emails like this one, please contact "[email protected]" <[email protected]>.
