You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@plc4x.apache.org by jf...@apache.org on 2020/02/10 07:27:48 UTC
[plc4x] branch develop updated: Hardened "flanky" Test in Jenkins.
This is an automated email from the ASF dual-hosted git repository.
jfeinauer pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/plc4x.git
The following commit(s) were added to refs/heads/develop by this push:
new 9034cb7 Hardened "flanky" Test in Jenkins.
9034cb7 is described below
commit 9034cb71d6b1fa7412f94cd9555b7006396d1619
Author: julian <j....@pragmaticminds.de>
AuthorDate: Mon Feb 10 08:27:42 2020 +0100
Hardened "flanky" Test in Jenkins.
---
.../plc4x/java/spi/optimizer/RequestTransactionManagerTest.java | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/plc4j/spi/src/test/java/org/apache/plc4x/java/spi/optimizer/RequestTransactionManagerTest.java b/plc4j/spi/src/test/java/org/apache/plc4x/java/spi/optimizer/RequestTransactionManagerTest.java
index e92adc4..535b7c3 100644
--- a/plc4j/spi/src/test/java/org/apache/plc4x/java/spi/optimizer/RequestTransactionManagerTest.java
+++ b/plc4j/spi/src/test/java/org/apache/plc4x/java/spi/optimizer/RequestTransactionManagerTest.java
@@ -146,7 +146,10 @@ public class RequestTransactionManagerTest {
// Exception case
handle.failRequest(new RuntimeException());
- // Wait some millis?
+ // Wait that the fail is handled internally surely
+ Thread.sleep(100);
+
+ // Assert that no requests are active
assertEquals(0, tm.getNumberOfActiveRequests());
// Assert that its cancelled