summaryrefslogtreecommitdiffstats
path: root/storage/src/tests/distributor/idealstatemanagertest.cpp
diff options
context:
space:
mode:
authorHÃ¥kon Hallingstad <hakon@oath.com>2017-10-23 22:11:15 +0200
committerGitHub <noreply@github.com>2017-10-23 22:11:15 +0200
commitcb7e6e776512be898c73505dc7d6b65ca9ea5d1b (patch)
tree1ded1bb660b6200b2c624228038a248696ce6c79 /storage/src/tests/distributor/idealstatemanagertest.cpp
parent6679ccc72890b11073703624720c2b0292250e93 (diff)
Revert "Revert "Use existing bucket space instead of placeholder value""
Diffstat (limited to 'storage/src/tests/distributor/idealstatemanagertest.cpp')
-rw-r--r--storage/src/tests/distributor/idealstatemanagertest.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/storage/src/tests/distributor/idealstatemanagertest.cpp b/storage/src/tests/distributor/idealstatemanagertest.cpp
index e48046fb4ac..d4d7a00a2df 100644
--- a/storage/src/tests/distributor/idealstatemanagertest.cpp
+++ b/storage/src/tests/distributor/idealstatemanagertest.cpp
@@ -10,8 +10,10 @@
#include <vespa/storageapi/message/bucketsplitting.h>
#include <tests/distributor/distributortestutil.h>
#include <vespa/document/test/make_document_bucket.h>
+#include <vespa/document/test/make_bucket_space.h>
using document::test::makeDocumentBucket;
+using document::test::makeBucketSpace;
namespace storage {
namespace distributor {
@@ -198,7 +200,7 @@ IdealStateManagerTest::testBlockIdealStateOpsOnFullRequestBucketInfo()
// sent to the entire node. It will then use a null bucketid.
{
std::shared_ptr<api::RequestBucketInfoCommand> msg(
- new api::RequestBucketInfoCommand(buckets));
+ new api::RequestBucketInfoCommand(makeBucketSpace(), buckets));
msg->setAddress(
api::StorageMessageAddress("storage", lib::NodeType::STORAGE, 4));
tracker.insert(msg);
@@ -220,7 +222,7 @@ IdealStateManagerTest::testBlockIdealStateOpsOnFullRequestBucketInfo()
// Don't block on null-bucket messages that aren't RequestBucketInfo.
{
std::shared_ptr<api::CreateVisitorCommand> msg(
- new api::CreateVisitorCommand("foo", "bar", "baz"));
+ new api::CreateVisitorCommand(makeBucketSpace(), "foo", "bar", "baz"));
msg->setAddress(
api::StorageMessageAddress("storage", lib::NodeType::STORAGE, 7));
tracker.insert(msg);