From: Gary Wu Date: Thu, 2 May 2019 14:37:04 +0000 (+0000) Subject: Merge "Unit test instability fix" X-Git-Tag: 4.0.0-ONAP~134 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=12750c04bc340ac2e4cf4497bc31323f9d1811e7;hp=f788c3c61b108b58af8a6f99f4c4abb8e445c3e0;p=integration.git Merge "Unit test instability fix" --- diff --git a/test/mocks/mass-pnf-sim/pnf-sim-lightweight/src/test/java/org/onap/pnfsimulator/simulator/SimulatorTest.java b/test/mocks/mass-pnf-sim/pnf-sim-lightweight/src/test/java/org/onap/pnfsimulator/simulator/SimulatorTest.java index 7ed9f04c2..fb812b598 100644 --- a/test/mocks/mass-pnf-sim/pnf-sim-lightweight/src/test/java/org/onap/pnfsimulator/simulator/SimulatorTest.java +++ b/test/mocks/mass-pnf-sim/pnf-sim-lightweight/src/test/java/org/onap/pnfsimulator/simulator/SimulatorTest.java @@ -109,7 +109,7 @@ public class SimulatorTest { void should_throw_noropfiles_exception_given_empty_filelist() { Simulator simulator = Simulator.builder() .withDuration(Duration.ofMillis(100)) - .withInterval(Duration.ofMillis(10)) + .withInterval(Duration.ofMillis(100)) .withCommonEventHeaderParams(VALID_COMMON_EVENT_HEADER_PARAMS) .withPnfRegistrationParams(VALID_PNF_REGISTRATION_PARAMS) .withNotificationParams(Optional.empty()) @@ -127,7 +127,7 @@ public class SimulatorTest { Simulator simulator = Simulator.builder() .withDuration(Duration.ofMillis(100)) - .withInterval(Duration.ofMillis(10)) + .withInterval(Duration.ofMillis(100)) .withCommonEventHeaderParams(VALID_COMMON_EVENT_HEADER_PARAMS) .withPnfRegistrationParams(INVALID_PNF_REGISTRATION_PARAMS_1) .withNotificationParams(Optional.empty()) @@ -140,7 +140,7 @@ public class SimulatorTest { simulator = Simulator.builder() .withDuration(Duration.ofMillis(100)) - .withInterval(Duration.ofMillis(10)) + .withInterval(Duration.ofMillis(100)) .withCommonEventHeaderParams(VALID_COMMON_EVENT_HEADER_PARAMS) .withPnfRegistrationParams(INVALID_PNF_REGISTRATION_PARAMS_2) .withNotificationParams(Optional.empty()) @@ -153,7 +153,7 @@ public class SimulatorTest { simulator = Simulator.builder() .withDuration(Duration.ofMillis(100)) - .withInterval(Duration.ofMillis(10)) + .withInterval(Duration.ofMillis(100)) .withCommonEventHeaderParams(VALID_COMMON_EVENT_HEADER_PARAMS) .withPnfRegistrationParams(INVALID_PNF_REGISTRATION_PARAMS_3) .withNotificationParams(Optional.empty()) @@ -166,7 +166,7 @@ public class SimulatorTest { simulator = Simulator.builder() .withDuration(Duration.ofMillis(100)) - .withInterval(Duration.ofMillis(10)) + .withInterval(Duration.ofMillis(100)) .withCommonEventHeaderParams(VALID_COMMON_EVENT_HEADER_PARAMS) .withPnfRegistrationParams(VALID_PNF_REGISTRATION_PARAMS) .withNotificationParams(INVALID_NOTIFICATION_PARAMS) @@ -185,7 +185,7 @@ public class SimulatorTest { HttpClientAdapter httpClientMock = Mockito.mock(HttpClientAdapter.class); Simulator simulator = Simulator.builder() .withDuration(Duration.ofMillis(100)) - .withInterval(Duration.ofMillis(10)) + .withInterval(Duration.ofMillis(100)) .withCommonEventHeaderParams(VALID_COMMON_EVENT_HEADER_PARAMS) .withPnfRegistrationParams(Optional.empty()) .withNotificationParams(VALID_NOTIFICATION_PARAMS)