From 2a72dc8076d744018e6ab1d16ed83735b4e02b0c Mon Sep 17 00:00:00 2001 From: Jim Hahn Date: Wed, 29 Jul 2020 17:34:56 -0400 Subject: Allocate a new server port for each test Junit tests were failing randomly on the build server, perhaps due to the fact that multiple tests attempt to bind to the server port, 6969. Modified most of the tests to allocate their own server port. Issue-ID: POLICY-2713 Change-Id: If40eef7989c9a46e2d458d915ed5bd0281ff0b0d Signed-off-by: Jim Hahn --- .../forwarding/lifecycle/api/LifecycleApiPolicyForwarderTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/forwarding-plugins/src/test') diff --git a/plugins/forwarding-plugins/src/test/java/org/onap/policy/distribution/forwarding/lifecycle/api/LifecycleApiPolicyForwarderTest.java b/plugins/forwarding-plugins/src/test/java/org/onap/policy/distribution/forwarding/lifecycle/api/LifecycleApiPolicyForwarderTest.java index d9979e6c..d9b64ce2 100644 --- a/plugins/forwarding-plugins/src/test/java/org/onap/policy/distribution/forwarding/lifecycle/api/LifecycleApiPolicyForwarderTest.java +++ b/plugins/forwarding-plugins/src/test/java/org/onap/policy/distribution/forwarding/lifecycle/api/LifecycleApiPolicyForwarderTest.java @@ -68,7 +68,7 @@ public class LifecycleApiPolicyForwarderTest { LifecycleApiForwarderParameters.class); ParameterService.register(parameterGroup); simulator.startLifecycycleApiSimulator(); - if (!NetworkUtil.isTcpPortOpen("0.0.0.0", 6969, 6, 10000L)) { + if (!NetworkUtil.isTcpPortOpen("0.0.0.0", 6969, 50, 200L)) { throw new IllegalStateException("cannot connect to port 6969"); } } -- cgit 1.2.3-korg