diff --git a/bundles/org.openhab.core/src/test/java/org/openhab/core/common/ThreadPoolManagerTest.java b/bundles/org.openhab.core/src/test/java/org/openhab/core/common/ThreadPoolManagerTest.java index 60718e26ce2..6e968dd8259 100644 --- a/bundles/org.openhab.core/src/test/java/org/openhab/core/common/ThreadPoolManagerTest.java +++ b/bundles/org.openhab.core/src/test/java/org/openhab/core/common/ThreadPoolManagerTest.java @@ -125,7 +125,7 @@ private void checkThreadPoolWorks(String poolName) throws InterruptedException { ExecutorService threadPool = ThreadPoolManager.getPool(poolName); CountDownLatch cdl = new CountDownLatch(1); threadPool.execute(cdl::countDown); - assertTrue(cdl.await(1, TimeUnit.SECONDS), "Checking if thread pool " + poolName + " works"); + assertTrue(cdl.await(5, TimeUnit.SECONDS), "Checking if thread pool " + poolName + " works"); assertFalse(threadPool.isShutdown(), "Checking if thread pool is not shut down"); } @@ -133,7 +133,7 @@ private void checkScheduledPoolWorks(String poolName) throws InterruptedExceptio ScheduledExecutorService threadPool = ThreadPoolManager.getScheduledPool(poolName); CountDownLatch cdl = new CountDownLatch(1); threadPool.schedule(cdl::countDown, 100, TimeUnit.MILLISECONDS); - assertTrue(cdl.await(1, TimeUnit.SECONDS), "Checking if thread pool " + poolName + " works"); + assertTrue(cdl.await(5, TimeUnit.SECONDS), "Checking if thread pool " + poolName + " works"); assertFalse(threadPool.isShutdown(), "Checking if thread pool is not shut down"); } }