This is an automated email from the ASF dual-hosted git repository. rzo1 pushed a commit to branch tomee-10.x in repository https://gitbox.apache.org/repos/asf/tomee.git
commit 4c873b86b7287906aff3e37cae03e948e4f3a3c7 Author: Mark Struberg <[email protected]> AuthorDate: Sun Jul 26 00:39:23 2026 +0200 failover integration test needs to wait for servers to take action otherwise on fast systems it will do the action before the server finished it's task. With the sleeps it now succeeds consistently (cherry picked from commit 61585a363a4986f1895ba842b258462da027378c) --- .../apache/openejb/itest/failover/StickyConnectionStrategyTest.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/itests/failover/src/test/java/org/apache/openejb/itest/failover/StickyConnectionStrategyTest.java b/itests/failover/src/test/java/org/apache/openejb/itest/failover/StickyConnectionStrategyTest.java index 7193db229b..3f67ffe5df 100644 --- a/itests/failover/src/test/java/org/apache/openejb/itest/failover/StickyConnectionStrategyTest.java +++ b/itests/failover/src/test/java/org/apache/openejb/itest/failover/StickyConnectionStrategyTest.java @@ -158,6 +158,8 @@ public class StickyConnectionStrategyTest { final Calculator bean = (Calculator) context.lookup("CalculatorBeanRemote"); + Thread.sleep(1000L); + String previous = null; for (final StandaloneServer ignored : servers.values()) { @@ -186,6 +188,8 @@ public class StickyConnectionStrategyTest { // Now let's kill that server servers.get(name).kill(); + + Thread.sleep(1000L); } logger.info("All Servers Shutdown"); @@ -210,6 +214,7 @@ public class StickyConnectionStrategyTest { logger.info(String.format("Starting %s server", server.getProperties().get("name"))); server.start(1, TimeUnit.MINUTES); + Thread.sleep(1000L); logger.info("Performing one more invocation");
