diff options
Diffstat (limited to 'container-search/src/test/java/com/yahoo')
-rw-r--r-- | container-search/src/test/java/com/yahoo/search/query/profile/compiled/CompiledQueryProfileRegistryTest.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/container-search/src/test/java/com/yahoo/search/query/profile/compiled/CompiledQueryProfileRegistryTest.java b/container-search/src/test/java/com/yahoo/search/query/profile/compiled/CompiledQueryProfileRegistryTest.java index 6819578c2ae..511921ac047 100644 --- a/container-search/src/test/java/com/yahoo/search/query/profile/compiled/CompiledQueryProfileRegistryTest.java +++ b/container-search/src/test/java/com/yahoo/search/query/profile/compiled/CompiledQueryProfileRegistryTest.java @@ -7,6 +7,7 @@ import org.junit.Test; import java.util.concurrent.Executors; import static org.junit.Assert.assertEquals; +import static org.junit.Assert.assertTrue; /** * @author gjoranv @@ -23,7 +24,9 @@ public class CompiledQueryProfileRegistryTest { .value("5"))) .build(); - var registry = new CompiledQueryProfileRegistry(config, Executors.newCachedThreadPool()); + var executor = Executors.newCachedThreadPool(); + var registry = new CompiledQueryProfileRegistry(config, executor); + assertTrue(executor.shutdownNow().isEmpty()); var profile1 = registry.findQueryProfile("profile1"); assertEquals("5", profile1.get("hits")); } |