You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by re...@apache.org on 2024/12/01 00:45:21 UTC

(cxf) branch main updated: Fix flaky org.apache.cxf.io.DelayedCachedOutputStreamCleanerTest.testCleanOnShutdownDisabled test case (OpenJ9)

This is an automated email from the ASF dual-hosted git repository.

reta pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/cxf.git


The following commit(s) were added to refs/heads/main by this push:
     new 8684601b1e Fix flaky org.apache.cxf.io.DelayedCachedOutputStreamCleanerTest.testCleanOnShutdownDisabled test case (OpenJ9)
8684601b1e is described below

commit 8684601b1ea84373a70f44b4bd95537649e04f8f
Author: Andriy Redko <dr...@gmail.com>
AuthorDate: Sat Nov 30 19:44:59 2024 -0500

    Fix flaky org.apache.cxf.io.DelayedCachedOutputStreamCleanerTest.testCleanOnShutdownDisabled test case (OpenJ9)
---
 .../org/apache/cxf/io/DelayedCachedOutputStreamCleanerTest.java     | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/core/src/test/java/org/apache/cxf/io/DelayedCachedOutputStreamCleanerTest.java b/core/src/test/java/org/apache/cxf/io/DelayedCachedOutputStreamCleanerTest.java
index 1cd557c1c6..3c6c6a82f7 100644
--- a/core/src/test/java/org/apache/cxf/io/DelayedCachedOutputStreamCleanerTest.java
+++ b/core/src/test/java/org/apache/cxf/io/DelayedCachedOutputStreamCleanerTest.java
@@ -166,9 +166,9 @@ public class DelayedCachedOutputStreamCleanerTest {
 
     @Test
     public void testCleanOnShutdownDisabled() throws InterruptedException {
-        /* Delay of 2.5 seconds */
+        /* Delay of 3 seconds */
         final Map<String, Object> properties = new HashMap<>();
-        properties.put(CachedConstants.CLEANER_DELAY_BUS_PROP, 2500); /* 2.5 seconds */
+        properties.put(CachedConstants.CLEANER_DELAY_BUS_PROP, 3000); /* 3 seconds */
         properties.put(CachedConstants.CLEANER_CLEAN_ON_SHUTDOWN_BUS_PROP, false);
         bus = new ExtensionManagerBus(new HashMap<>(), properties);
 
@@ -182,7 +182,7 @@ public class DelayedCachedOutputStreamCleanerTest {
         bus.shutdown(true);
 
         // The Closeable::close should not be called since timer(s) is cancelled
-        await().during(3, TimeUnit.SECONDS).untilAtomic(latch, is(false));
+        await().during(4, TimeUnit.SECONDS).atMost(5, TimeUnit.SECONDS).untilAtomic(latch, is(false));
     }
 
     @Test