diff options
author | Håvard Pettersen <havardpe@yahooinc.com> | 2023-02-22 12:54:31 +0000 |
---|---|---|
committer | Håvard Pettersen <havardpe@yahooinc.com> | 2023-02-22 14:46:14 +0000 |
commit | b6073079e7d0d09fb7f13606d3fe3f1798337d66 (patch) | |
tree | 70998a611bdb7af626e8f480e34062db7783c2ea /searchcore/src/tests/proton/proton_config_fetcher/proton_config_fetcher_test.cpp | |
parent | 890e0ac9e795ca1c95e459f98a54593ac151051c (diff) |
untangle fnet from fastos
Diffstat (limited to 'searchcore/src/tests/proton/proton_config_fetcher/proton_config_fetcher_test.cpp')
-rw-r--r-- | searchcore/src/tests/proton/proton_config_fetcher/proton_config_fetcher_test.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/searchcore/src/tests/proton/proton_config_fetcher/proton_config_fetcher_test.cpp b/searchcore/src/tests/proton/proton_config_fetcher/proton_config_fetcher_test.cpp index afd224c55de..4b6ffd07b8a 100644 --- a/searchcore/src/tests/proton/proton_config_fetcher/proton_config_fetcher_test.cpp +++ b/searchcore/src/tests/proton/proton_config_fetcher/proton_config_fetcher_test.cpp @@ -305,7 +305,8 @@ TEST_FFF("require that proton config fetcher follows changes to bootstrap", ConfigTestFixture("search"), ProtonConfigOwner(), ProtonConfigFetcher(f1.transport.transport(), ConfigUri(f1.configId, f1.context), f2, 60s)) { - f3.start(f1.transport.threadPool()); + FastOS_ThreadPool pool; + f3.start(pool); ASSERT_TRUE(f2._configured); ASSERT_TRUE(f1.configEqual(f2.getBootstrapConfig())); f2._configured = false; @@ -320,7 +321,8 @@ TEST_FFF("require that proton config fetcher follows changes to doctypes", ConfigTestFixture("search"), ProtonConfigOwner(), ProtonConfigFetcher(f1.transport.transport(), ConfigUri(f1.configId, f1.context), f2, 60s)) { - f3.start(f1.transport.threadPool()); + FastOS_ThreadPool pool; + f3.start(pool); f2._configured = false; f1.addDocType("typea"); @@ -340,7 +342,8 @@ TEST_FFF("require that proton config fetcher reconfigures dbowners", ConfigTestFixture("search"), ProtonConfigOwner(), ProtonConfigFetcher(f1.transport.transport(), ConfigUri(f1.configId, f1.context), f2, 60s)) { - f3.start(f1.transport.threadPool()); + FastOS_ThreadPool pool; + f3.start(pool); ASSERT_FALSE(f2.getDocumentDBConfig("typea")); // Add db and verify that config for db is provided |