From: Giovanni Meo Date: Thu, 24 Oct 2013 09:23:09 +0000 (+0200) Subject: Northbound IT works unreliably X-Git-Tag: jenkins-controller-bulk-release-prepare-only-2-1~573 X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=commitdiff_plain;h=47c8b781b163ccf652a043e060582ec1904787d4 Northbound IT works unreliably - The root cause of the issue is in the fact the hosttracker northbound bundles takes long time to reply to a query, why is that is todo. To avoid this issue however i'm making the timeout for the HTTP request in the IT to be infinity. Change-Id: I8b857a24d6ebd03ff27f13c5061106c5202a8c2a Signed-off-by: Giovanni Meo --- diff --git a/opendaylight/northbound/integrationtest/src/test/java/org/opendaylight/controller/northbound/integrationtest/NorthboundIT.java b/opendaylight/northbound/integrationtest/src/test/java/org/opendaylight/controller/northbound/integrationtest/NorthboundIT.java index 3f3aec08ed..f6714480c9 100644 --- a/opendaylight/northbound/integrationtest/src/test/java/org/opendaylight/controller/northbound/integrationtest/NorthboundIT.java +++ b/opendaylight/northbound/integrationtest/src/test/java/org/opendaylight/controller/northbound/integrationtest/NorthboundIT.java @@ -153,7 +153,11 @@ public class NorthboundIT { request.setUri(restUrl); request.setMethod(method); - request.setTimeout(5000); // HostTracker doesn't respond within 3 seconds + request.setTimeout(0); // HostTracker doesn't respond + // within default timeout during + // IT so setting an indefinite + // timeout till the issue is + // sorted out Map> headers = new HashMap>(); String authString = "admin:admin";