aboutsummaryrefslogtreecommitdiffstats
path: root/controlloop/m2
diff options
context:
space:
mode:
authorJoseph Chou <jc2555@att.com>2020-03-24 15:30:25 -0400
committerJoseph Chou <jc2555@att.com>2020-03-24 15:44:13 -0400
commit97b8b2be89066a45ae934bb820728b71834fb5c3 (patch)
tree4258238aa6705d01ada298403ce7efcd224aa8bd /controlloop/m2
parentb9e27b5ddde21cf4feb378f975137f4d5ea87854 (diff)
M2 junit intermittent timeout issue
Update code to increase maximum wait time Issue-ID: POLICY-2435 Change-Id: Ib9d7452743c6cdb39c56f4bbed0fd7fd903dc8bc Signed-off-by: Joseph Chou <jc2555@att.com>
Diffstat (limited to 'controlloop/m2')
-rw-r--r--controlloop/m2/test/src/test/java/org/onap/policy/m2/test/AppcLcmTest.java11
1 files changed, 4 insertions, 7 deletions
diff --git a/controlloop/m2/test/src/test/java/org/onap/policy/m2/test/AppcLcmTest.java b/controlloop/m2/test/src/test/java/org/onap/policy/m2/test/AppcLcmTest.java
index 3298d7bde..a35e8c6ae 100644
--- a/controlloop/m2/test/src/test/java/org/onap/policy/m2/test/AppcLcmTest.java
+++ b/controlloop/m2/test/src/test/java/org/onap/policy/m2/test/AppcLcmTest.java
@@ -31,19 +31,16 @@ import static org.onap.policy.m2.test.Util.assertSubset;
import static org.onap.policy.m2.test.Util.json;
import com.google.gson.JsonObject;
-
import java.io.File;
import java.time.Duration;
import java.util.Properties;
import java.util.UUID;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.atomic.AtomicReference;
-
import org.awaitility.Durations;
import org.junit.AfterClass;
import org.junit.BeforeClass;
import org.junit.Test;
-
import org.onap.policy.drools.system.PolicyController;
import org.onap.policy.drools.system.PolicyEngineConstants;
import org.onap.policy.drools.util.KieUtils;
@@ -154,7 +151,7 @@ public class AppcLcmTest {
dcae.send(req.msg);
// receive active notification, and restart operation
- awaitAndAssert(5, Durations.TWO_HUNDRED_MILLISECONDS, notification,
+ awaitAndAssert(10, Durations.TWO_HUNDRED_MILLISECONDS, notification,
json("notification", "ACTIVE"));
appcOperation(req, "Restart", 400, "Restart Successful");
@@ -164,7 +161,7 @@ public class AppcLcmTest {
dcae.send(req.msg);
// receive final success notification
- awaitAndAssert(5, Durations.TWO_HUNDRED_MILLISECONDS, notification,
+ awaitAndAssert(10, Durations.TWO_HUNDRED_MILLISECONDS, notification,
json("notification", "FINAL: SUCCESS"));
// sleep to allow DB update
@@ -182,7 +179,7 @@ public class AppcLcmTest {
dcae.send(req.msg);
// active notification, and restart 1 operation
- awaitAndAssert(5, Durations.TWO_HUNDRED_MILLISECONDS, notification,
+ awaitAndAssert(10, Durations.TWO_HUNDRED_MILLISECONDS, notification,
json("notification", "ACTIVE"));
appcOperation(req, "Restart", 450, "Restart 1 Failed");
@@ -196,7 +193,7 @@ public class AppcLcmTest {
dcae.send(req.msg);
// receive final success notification
- awaitAndAssert(5, Durations.TWO_HUNDRED_MILLISECONDS, notification,
+ awaitAndAssert(10, Durations.TWO_HUNDRED_MILLISECONDS, notification,
json("notification", "FINAL: SUCCESS"));
// sleep to allow DB update