aboutsummaryrefslogtreecommitdiffstats
path: root/storage/src/tests/distributor/removeoperationtest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'storage/src/tests/distributor/removeoperationtest.cpp')
-rw-r--r--storage/src/tests/distributor/removeoperationtest.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/storage/src/tests/distributor/removeoperationtest.cpp b/storage/src/tests/distributor/removeoperationtest.cpp
index ae4feb0d03a..013d62bac14 100644
--- a/storage/src/tests/distributor/removeoperationtest.cpp
+++ b/storage/src/tests/distributor/removeoperationtest.cpp
@@ -6,8 +6,11 @@
#include <vespa/storage/distributor/distributor.h>
#include <vespa/storageapi/message/persistence.h>
#include <tests/distributor/distributortestutil.h>
+#include <tests/common/make_document_bucket.h>
#include <vespa/storage/distributor/operations/external/removeoperation.h>
+using storage::test::makeDocumentBucket;
+
namespace storage {
namespace distributor {
@@ -52,7 +55,7 @@ public:
void sendRemove(document::DocumentId dId) {
std::shared_ptr<api::RemoveCommand> msg(
- new api::RemoveCommand(document::BucketId(0), dId, 100));
+ new api::RemoveCommand(makeDocumentBucket(document::BucketId(0)), dId, 100));
op.reset(new RemoveOperation(getExternalOperationHandler(),
msg,