diff --git a/common/configurable/src/test/java/io/helidon/common/configurable/ThreadPoolTest.java b/common/configurable/src/test/java/io/helidon/common/configurable/ThreadPoolTest.java index e903be648b6..f1402be5bd3 100644 --- a/common/configurable/src/test/java/io/helidon/common/configurable/ThreadPoolTest.java +++ b/common/configurable/src/test/java/io/helidon/common/configurable/ThreadPoolTest.java @@ -561,6 +561,7 @@ public void run() { }; pool.submit(task4); pool.shutdown(); + assertThat(pool.awaitTermination(20, SECONDS), is(true)); assertThat(pool.getCompletedTasks(), is(2)); assertThat(pool.getFailedTasks(), is(2)); assertThat(pool.getTotalTasks(), is(pool.getCompletedTasks() + pool.getFailedTasks()));