summaryrefslogtreecommitdiffstats
path: root/searchcore/src/tests/proton/index/indexmanager_test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'searchcore/src/tests/proton/index/indexmanager_test.cpp')
-rw-r--r--searchcore/src/tests/proton/index/indexmanager_test.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/searchcore/src/tests/proton/index/indexmanager_test.cpp b/searchcore/src/tests/proton/index/indexmanager_test.cpp
index 3f088a497aa..89594821803 100644
--- a/searchcore/src/tests/proton/index/indexmanager_test.cpp
+++ b/searchcore/src/tests/proton/index/indexmanager_test.cpp
@@ -374,12 +374,15 @@ TEST_F(IndexManagerTest, require_that_source_selector_is_flushed)
ASSERT_TRUE(file.OpenReadOnlyExisting());
}
+VESPA_THREAD_STACK_TAG(invert_executor)
+VESPA_THREAD_STACK_TAG(push_executor)
+
TEST_F(IndexManagerTest, require_that_flush_stats_are_calculated)
{
Schema schema(getSchema());
FieldIndexCollection fic(schema, MockFieldLengthInspector());
- auto invertThreads = SequencedTaskExecutor::create(2);
- auto pushThreads = SequencedTaskExecutor::create(2);
+ auto invertThreads = SequencedTaskExecutor::create(invert_executor, 2);
+ auto pushThreads = SequencedTaskExecutor::create(push_executor, 2);
search::memoryindex::DocumentInverter inverter(schema, *invertThreads, *pushThreads, fic);
uint64_t fixed_index_size = fic.getMemoryUsage().allocatedBytes();