commit | 716c2cf55d06aea2838bb6dfafc11bd46cd3537c | [log] [tgz] |
---|---|---|
author | Robert Munteanu <rombert@apache.org> | Tue Sep 21 13:18:28 2021 +0200 |
committer | Robert Munteanu <robert.munteanu@gmail.com> | Tue Sep 21 14:05:33 2021 +0200 |
tree | 3b8963e90d6441770843f4c58a1b3c8b13e5728e | |
parent | d7e6e9f67853006b80a6756a0dde874db1103807 [diff] |
SLING-10835 - ThreadLocal cleaner fallback code does not work Set timeout for all test methods in ThreadPoolExecutorCleaningThreadLocalsTest, otherwise they hang indefinitely on Java 17.
diff --git a/src/test/java/org/apache/sling/commons/threads/impl/ThreadPoolExecutorCleaningThreadLocalsTest.java b/src/test/java/org/apache/sling/commons/threads/impl/ThreadPoolExecutorCleaningThreadLocalsTest.java index bbaee70..a720d2b 100644 --- a/src/test/java/org/apache/sling/commons/threads/impl/ThreadPoolExecutorCleaningThreadLocalsTest.java +++ b/src/test/java/org/apache/sling/commons/threads/impl/ThreadPoolExecutorCleaningThreadLocalsTest.java
@@ -69,7 +69,7 @@ } } - @Test + @Test(timeout = 10000) public void testThreadLocalBeingCleanedUp() throws InterruptedException, ExecutionException { assertTaskDoesNotSeeOldThreadLocals("test"); assertTaskDoesNotSeeOldThreadLocals("test2");