From 3c1c7c661006ebae18cbbcf8388ad96262e6c95c Mon Sep 17 00:00:00 2001 From: jhh Date: Fri, 22 Nov 2019 09:08:30 -0600 Subject: Ocasional race condition in upgrade junits Issue-ID: POLICY-2158 Signed-off-by: jhh Change-Id: I5b1295508a291338d0ea668f598ce038304a35bc --- .../drools/controller/internal/MavenDroolsControllerUpgradesTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'policy-management/src') 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); } -- cgit 1.2.3-korg