You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by ro...@apache.org on 2021/09/21 11:53:24 UTC
[sling-org-apache-sling-commons-threads] 01/02: SLING-10835 -
ThreadLocal cleaner fallback code does not work
This is an automated email from the ASF dual-hosted git repository.
rombert pushed a commit to branch issue/SLING-10835
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-commons-threads.git
commit 872fd91eb3d7f24b6c71ea7c3a620a1346418e48
Author: Robert Munteanu <ro...@apache.org>
AuthorDate: Tue Sep 21 13:18:28 2021 +0200
SLING-10835 - ThreadLocal cleaner fallback code does not work
Set timeout for all test methods in ThreadPoolExecutorCleaningThreadLocalsTest,
otherwise they hang indefinitely on Java 17.
---
.../threads/impl/ThreadPoolExecutorCleaningThreadLocalsTest.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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 @@ public class ThreadPoolExecutorCleaningThreadLocalsTest {
}
}
- @Test
+ @Test(timeout = 10000)
public void testThreadLocalBeingCleanedUp() throws InterruptedException, ExecutionException {
assertTaskDoesNotSeeOldThreadLocals("test");
assertTaskDoesNotSeeOldThreadLocals("test2");