summaryrefslogtreecommitdiffstats
path: root/storage/src/tests/distributor/throttlingoperationstartertest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'storage/src/tests/distributor/throttlingoperationstartertest.cpp')
-rw-r--r--storage/src/tests/distributor/throttlingoperationstartertest.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/storage/src/tests/distributor/throttlingoperationstartertest.cpp b/storage/src/tests/distributor/throttlingoperationstartertest.cpp
index bc082f65e18..c3aebcafe06 100644
--- a/storage/src/tests/distributor/throttlingoperationstartertest.cpp
+++ b/storage/src/tests/distributor/throttlingoperationstartertest.cpp
@@ -2,6 +2,9 @@
#include <vespa/vdstestlib/cppunit/macros.h>
#include <vespa/storage/distributor/throttlingoperationstarter.h>
#include <tests/distributor/maintenancemocks.h>
+#include <vespa/document/test/make_document_bucket.h>
+
+using document::test::makeDocumentBucket;
namespace storage {
@@ -20,7 +23,7 @@ class ThrottlingOperationStarterTest : public CppUnit::TestFixture {
CPPUNIT_TEST_SUITE_END();
std::shared_ptr<Operation> createMockOperation() {
- return std::shared_ptr<Operation>(new MockOperation(BucketId(16, 1)));
+ return std::shared_ptr<Operation>(new MockOperation(makeDocumentBucket(BucketId(16, 1))));
}
std::unique_ptr<MockOperationStarter> _starterImpl;
@@ -67,7 +70,7 @@ ThrottlingOperationStarterTest::testOperationStartingIsForwardedToImplementation
{
CPPUNIT_ASSERT(_operationStarter->start(createMockOperation(),
OperationStarter::Priority(0)));
- CPPUNIT_ASSERT_EQUAL(std::string("BucketId(0x4000000000000001), pri 0\n"),
+ CPPUNIT_ASSERT_EQUAL(std::string("Bucket(BucketSpace(0x0000000000000000), BucketId(0x4000000000000001)), pri 0\n"),
_starterImpl->toString());
}