Skip to content

Commit

Permalink
Fix flaky org.apache.cxf.io.DelayedCachedOutputStreamCleanerTest.test…
Browse files Browse the repository at this point in the history
…CleanOnShutdownDisabled test case (OpenJ9)

(cherry picked from commit 8684601)
(cherry picked from commit daf5620)
  • Loading branch information
reta committed Dec 1, 2024
1 parent ccf79b9 commit c5886a8
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -166,9 +166,9 @@ public void testCleanOnShutdown() throws InterruptedException {

@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);

Expand All @@ -182,7 +182,7 @@ public void testCleanOnShutdownDisabled() throws InterruptedException {
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
Expand Down

0 comments on commit c5886a8

Please sign in to comment.