diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2022-01-28 13:31:21 +0100 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2022-01-28 13:40:01 +0100 |
commit | 11782742bd36b88f116f716e03c11df1c8d21f12 (patch) | |
tree | a9a7f7201525d0b4d2bb562c38c931500f22a844 /container-search/src/test/java/com/yahoo/search/query/profile | |
parent | c58fe9e096554ec64a64060db4fc127f9d89f614 (diff) |
Use half of available cores to compile query profiles.
Diffstat (limited to 'container-search/src/test/java/com/yahoo/search/query/profile')
-rw-r--r-- | container-search/src/test/java/com/yahoo/search/query/profile/compiled/CompiledQueryProfileRegistryTest.java | 4 |
1 files changed, 3 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 a9792049fb7..6819578c2ae 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 @@ -4,6 +4,8 @@ package com.yahoo.search.query.profile.compiled; import com.yahoo.search.query.profile.config.QueryProfilesConfig; import org.junit.Test; +import java.util.concurrent.Executors; + import static org.junit.Assert.assertEquals; /** @@ -21,7 +23,7 @@ public class CompiledQueryProfileRegistryTest { .value("5"))) .build(); - var registry = new CompiledQueryProfileRegistry(config); + var registry = new CompiledQueryProfileRegistry(config, Executors.newCachedThreadPool()); var profile1 = registry.findQueryProfile("profile1"); assertEquals("5", profile1.get("hits")); } |