increase ITNeutronE2E Pax Exam time-out from default 3' to 15' 29/68329/1
authorMichael Vorburger <vorburger@redhat.com>
Thu, 15 Feb 2018 20:37:14 +0000 (21:37 +0100)
committerMichael Vorburger <vorburger@redhat.com>
Thu, 15 Feb 2018 20:37:14 +0000 (21:37 +0100)
because this IT fails more often than not on the Jenkins jobs with this:

    org.ops4j.pax.swissbox.tracker.ServiceLookupException:
        gave up waiting for service org.ops4j.pax.exam.ProbeInvoker

but it always passes locally for me; so hoping that this will help.

Change-Id: Idc8f5e67e95238a1ec3d40518045ae47f23f53f4
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
integration/test/src/test/java/org/opendaylight/neutron/e2etest/ITNeutronE2E.java

index 166b01664aed5ef89a5dca649b50b0e339e7a8e8..9097f3cd4b200de1d2f2e8d2776ed7ebb54089e5 100644 (file)
@@ -32,6 +32,7 @@ import org.junit.Test;
 import org.junit.runner.RunWith;
 import org.opendaylight.controller.mdsal.it.base.AbstractMdsalTestBase;
 import org.ops4j.pax.exam.Configuration;
+import org.ops4j.pax.exam.CoreOptions;
 import org.ops4j.pax.exam.Option;
 import org.ops4j.pax.exam.junit.PaxExam;
 import org.ops4j.pax.exam.karaf.options.KarafDistributionOption;
@@ -78,6 +79,8 @@ public class ITNeutronE2E  extends AbstractMdsalTestBase {
 
     private Option[] getOtherOptions() {
         return new Option[] {
+            // timeout 15 minutes instead of default 3 minutes, because Jenkins build VMs are *SLOW*
+            CoreOptions.systemTimeout(15 * 60 * 1000),
             vmOption("-javaagent:../../pax/jars/org.jacoco.agent.jar=destfile=../../jacoco-it.exec"),
             keepRuntimeFolder(), configureConsole().ignoreLocalConsole(),
             logLevel(LogLevel.INFO),