summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGary Wu <gary.i.wu@huawei.com>2019-05-02 14:37:04 +0000
committerGerrit Code Review <gerrit@onap.org>2019-05-02 14:37:04 +0000
commit12750c04bc340ac2e4cf4497bc31323f9d1811e7 (patch)
tree0790356b5b39afdf1c5662766a037be9c7bd487c
parentf788c3c61b108b58af8a6f99f4c4abb8e445c3e0 (diff)
parent8700ab0c505067ac00fe00714d3fdfd2b23d676e (diff)
Merge "Unit test instability fix"
-rw-r--r--test/mocks/mass-pnf-sim/pnf-sim-lightweight/src/test/java/org/onap/pnfsimulator/simulator/SimulatorTest.java12
1 files changed, 6 insertions, 6 deletions
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)