aboutsummaryrefslogtreecommitdiffstats
path: root/policy-management/src
diff options
context:
space:
mode:
authorjhh <jorge.hernandez-herrero@att.com>2019-11-22 09:08:30 -0600
committerjhh <jorge.hernandez-herrero@att.com>2019-11-22 09:08:30 -0600
commit3c1c7c661006ebae18cbbcf8388ad96262e6c95c (patch)
treeee0ba0f5a919230b3f71d9dc1faa718fbb64384a /policy-management/src
parente86cca8fe3d6bbf8520e56a47007a1ee836fb346 (diff)
Ocasional race condition in upgrade junits
Issue-ID: POLICY-2158 Signed-off-by: jhh <jorge.hernandez-herrero@att.com> Change-Id: I5b1295508a291338d0ea668f598ce038304a35bc
Diffstat (limited to 'policy-management/src')
-rw-r--r--policy-management/src/test/java/org/onap/policy/drools/controller/internal/MavenDroolsControllerUpgradesTest.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/policy-management/src/test/java/org/onap/policy/drools/controller/internal/MavenDroolsControllerUpgradesTest.java b/policy-management/src/test/java/org/onap/policy/drools/controller/internal/MavenDroolsControllerUpgradesTest.java
index 8c8cf977..aa4b2c61 100644
--- a/policy-management/src/test/java/org/onap/policy/drools/controller/internal/MavenDroolsControllerUpgradesTest.java
+++ b/policy-management/src/test/java/org/onap/policy/drools/controller/internal/MavenDroolsControllerUpgradesTest.java
@@ -150,8 +150,9 @@ public class MavenDroolsControllerUpgradesTest {
assertTrue(running2a.await(30, TimeUnit.SECONDS));
assertTrue(running2b.await(30, TimeUnit.SECONDS));
+ assertTrue(running1b.await(30, TimeUnit.SECONDS));
summary();
- assertKie(Arrays.asList("run-drools-runnable", "SETUP.1", "VERSION.12", "SETUP.2", "VERSION.2"), 2);
+ assertKie(Arrays.asList("run-drools-runnable", "SETUP.1", "VERSION.12", "SETUP.2", "VERSION.2"), 1);
controller.updateToVersion(
rulesDescriptor1.getGroupId(),
@@ -159,7 +160,6 @@ public class MavenDroolsControllerUpgradesTest {
rulesDescriptor1.getVersion(),
null, null);
- assertTrue(running1b.await(30, TimeUnit.SECONDS));
summary();
assertKie(Arrays.asList("run-drools-runnable", "SETUP.1", "VERSION.12"), 1);
}