diff options
author | Geir Storli <geirst@verizonmedia.com> | 2020-06-25 15:52:56 +0000 |
---|---|---|
committer | Geir Storli <geirst@verizonmedia.com> | 2020-06-25 15:53:38 +0000 |
commit | 5eba0ecfd9fcd7ee0b9c0cd2074fe3e9ae7782cf (patch) | |
tree | 7ad165e86f57fd69f1ed8b6e6d5c69b859122427 /searchcore/src/tests/proton/attribute/attributes_state_explorer/attributes_state_explorer_test.cpp | |
parent | 4b5340c5fa6d78af845cc19d1667818fb7d6bf70 (diff) |
Use ForegroundThreadExecutor in unit tests.
Diffstat (limited to 'searchcore/src/tests/proton/attribute/attributes_state_explorer/attributes_state_explorer_test.cpp')
-rw-r--r-- | searchcore/src/tests/proton/attribute/attributes_state_explorer/attributes_state_explorer_test.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/searchcore/src/tests/proton/attribute/attributes_state_explorer/attributes_state_explorer_test.cpp b/searchcore/src/tests/proton/attribute/attributes_state_explorer/attributes_state_explorer_test.cpp index 87473f3da97..094ae1a1400 100644 --- a/searchcore/src/tests/proton/attribute/attributes_state_explorer/attributes_state_explorer_test.cpp +++ b/searchcore/src/tests/proton/attribute/attributes_state_explorer/attributes_state_explorer_test.cpp @@ -10,8 +10,8 @@ #include <vespa/searchlib/test/directory_handler.h> #include <vespa/vespalib/test/insertion_operators.h> #include <vespa/vespalib/testkit/testapp.h> +#include <vespa/vespalib/util/foreground_thread_executor.h> #include <vespa/vespalib/util/foregroundtaskexecutor.h> -#include <vespa/vespalib/util/threadstackexecutor.h> #include <vespa/log/log.h> LOG_SETUP("attributes_state_explorer_test"); @@ -20,6 +20,7 @@ using namespace proton; using namespace proton::test; using search::AttributeVector; using vespalib::ForegroundTaskExecutor; +using vespalib::ForegroundThreadExecutor; using search::TuneFileAttributes; using search::index::DummyFileHeaderContext; using search::test::DirectoryHandler; @@ -31,7 +32,7 @@ struct Fixture DirectoryHandler _dirHandler; DummyFileHeaderContext _fileHeaderContext; ForegroundTaskExecutor _attributeFieldWriter; - vespalib::ThreadStackExecutor _shared; + ForegroundThreadExecutor _shared; HwInfo _hwInfo; AttributeManager::SP _mgr; AttributeManagerExplorer _explorer; @@ -39,7 +40,7 @@ struct Fixture : _dirHandler(TEST_DIR), _fileHeaderContext(), _attributeFieldWriter(), - _shared(1, 128 * 1024), + _shared(), _hwInfo(), _mgr(new AttributeManager(TEST_DIR, "test.subdb", TuneFileAttributes(), _fileHeaderContext, |