aboutsummaryrefslogtreecommitdiffstats
path: root/policy-core/src
diff options
context:
space:
mode:
authorjhh <jorge.hernandez-herrero@att.com>2021-02-23 13:32:38 -0600
committerjhh <jorge.hernandez-herrero@att.com>2021-02-23 13:32:38 -0600
commit4a3bb35cf14f9eff17b2e2bc5f09514d298a0c35 (patch)
tree4a65e44459df6917391df8d2bad0174fbda1a87e /policy-core/src
parent2616376363a06dabed8e1c5c6b5270e777fad4b9 (diff)
rearrange asserts in DroolsRunnable tests
There are consistent failures when doing staging builds in policy-core junits. This problem shows only in stage builds. It is suspected to be a race conditioning with the internal scheduling of rules and insertion of events. Issue-ID: POLICY-3097 Signed-off-by: jhh <jorge.hernandez-herrero@att.com> Change-Id: I0f2df770dfdda6d23e9cb29253f4152a0365d33a
Diffstat (limited to 'policy-core/src')
-rw-r--r--policy-core/src/test/java/org/onap/policy/drools/core/DroolsContainerTest.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/policy-core/src/test/java/org/onap/policy/drools/core/DroolsContainerTest.java b/policy-core/src/test/java/org/onap/policy/drools/core/DroolsContainerTest.java
index 939de08c..9fe5c708 100644
--- a/policy-core/src/test/java/org/onap/policy/drools/core/DroolsContainerTest.java
+++ b/policy-core/src/test/java/org/onap/policy/drools/core/DroolsContainerTest.java
@@ -188,9 +188,9 @@ public class DroolsContainerTest {
final LinkedBlockingQueue<String> lbq = new LinkedBlockingQueue<>();
executor.execute(() -> lbq.add("DroolsRunnable String"));
- executor.execute(() -> lbq.add("another DroolsRunnable String"));
-
assertEquals("DroolsRunnable String", lbq.poll(TIMEOUT_SEC, TimeUnit.SECONDS));
+
+ executor.execute(() -> lbq.add("another DroolsRunnable String"));
assertEquals("another DroolsRunnable String", lbq.poll(TIMEOUT_SEC, TimeUnit.SECONDS));
} finally {