aboutsummaryrefslogtreecommitdiffstats
path: root/storage/src/tests/common/storagelinktest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'storage/src/tests/common/storagelinktest.cpp')
-rw-r--r--storage/src/tests/common/storagelinktest.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/storage/src/tests/common/storagelinktest.cpp b/storage/src/tests/common/storagelinktest.cpp
index 88b66339127..0490581d7ff 100644
--- a/storage/src/tests/common/storagelinktest.cpp
+++ b/storage/src/tests/common/storagelinktest.cpp
@@ -1,10 +1,13 @@
// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include <tests/common/storagelinktest.h>
+#include <tests/common/make_document_bucket.h>
#include <iostream>
#include <string>
#include <vespa/storageapi/message/stat.h>
+using storage::test::makeDocumentBucket;
+
namespace storage {
CPPUNIT_TEST_SUITE_REGISTRATION(StorageLinkTest);
@@ -41,7 +44,7 @@ void StorageLinkTest::testNotImplemented() {
// Test that a message that nobody handles fails with NOT_IMPLEMENTED
_replier->setIgnore(true);
_feeder->sendDown(api::StorageCommand::SP(
- new api::StatBucketCommand(document::BucketId(0), "")));
+ new api::StatBucketCommand(makeDocumentBucket(document::BucketId(0)), "")));
_feeder->close();
_feeder->flush();
CPPUNIT_ASSERT_EQUAL((size_t) 1, _feeder->getNumReplies());