aboutsummaryrefslogtreecommitdiffstats
path: root/searchcore/src/tests/proton/attribute/attribute_manager
diff options
context:
space:
mode:
authorGeir Storli <geirst@verizonmedia.com>2020-06-25 15:52:56 +0000
committerGeir Storli <geirst@verizonmedia.com>2020-06-25 15:53:38 +0000
commit5eba0ecfd9fcd7ee0b9c0cd2074fe3e9ae7782cf (patch)
tree7ad165e86f57fd69f1ed8b6e6d5c69b859122427 /searchcore/src/tests/proton/attribute/attribute_manager
parent4b5340c5fa6d78af845cc19d1667818fb7d6bf70 (diff)
Use ForegroundThreadExecutor in unit tests.
Diffstat (limited to 'searchcore/src/tests/proton/attribute/attribute_manager')
-rw-r--r--searchcore/src/tests/proton/attribute/attribute_manager/attribute_manager_test.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/searchcore/src/tests/proton/attribute/attribute_manager/attribute_manager_test.cpp b/searchcore/src/tests/proton/attribute/attribute_manager/attribute_manager_test.cpp
index c222bf4e18f..abcf35051fc 100644
--- a/searchcore/src/tests/proton/attribute/attribute_manager/attribute_manager_test.cpp
+++ b/searchcore/src/tests/proton/attribute/attribute_manager/attribute_manager_test.cpp
@@ -34,6 +34,7 @@
#include <vespa/searchlib/test/directory_handler.h>
#include <vespa/searchlib/test/mock_gid_to_lid_mapping.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>
@@ -54,6 +55,7 @@ using proton::test::AttributeUtils;
using proton::test::createInt32Attribute;
using proton::test::Int32Attribute;
using vespalib::ForegroundTaskExecutor;
+using vespalib::ForegroundThreadExecutor;
using search::TuneFileAttributes;
using search::attribute::BasicType;
using search::attribute::IAttributeContext;
@@ -153,7 +155,7 @@ struct BaseFixture
DirectoryHandler _dirHandler;
DummyFileHeaderContext _fileHeaderContext;
ForegroundTaskExecutor _attributeFieldWriter;
- vespalib::ThreadStackExecutor _shared;
+ ForegroundThreadExecutor _shared;
HwInfo _hwInfo;
BaseFixture();
~BaseFixture();
@@ -167,7 +169,7 @@ BaseFixture::BaseFixture()
: _dirHandler(test_dir),
_fileHeaderContext(),
_attributeFieldWriter(),
- _shared(1, 128 * 1024),
+ _shared(),
_hwInfo()
{
}