diff options
author | Tor Egge <Tor.Egge@oath.com> | 2018-02-23 15:28:09 +0000 |
---|---|---|
committer | Tor Egge <Tor.Egge@oath.com> | 2018-02-23 15:28:09 +0000 |
commit | 3747f96e80ad43548af67cbe1b4a7cba1817d9e0 (patch) | |
tree | 45fdaaa97410a1f4bde9ca72b9b8799df83c90aa /storage/src/tests/distributor/removeoperationtest.cpp | |
parent | 180bc0034ae5ba6f2b5644a7c520486bbcc511bd (diff) |
Simplify distributor unit tests.
Diffstat (limited to 'storage/src/tests/distributor/removeoperationtest.cpp')
-rw-r--r-- | storage/src/tests/distributor/removeoperationtest.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/storage/src/tests/distributor/removeoperationtest.cpp b/storage/src/tests/distributor/removeoperationtest.cpp index 423e0816c13..24c40f50894 100644 --- a/storage/src/tests/distributor/removeoperationtest.cpp +++ b/storage/src/tests/distributor/removeoperationtest.cpp @@ -46,7 +46,7 @@ public: docId = document::DocumentId(document::DocIdString("test", "uri")); bucketId = getExternalOperationHandler().getBucketId(docId); - _distributor->enableClusterState(lib::ClusterState("distributor:1 storage:4")); + enableDistributorClusterState("distributor:1 storage:4"); }; void tearDown() override { @@ -189,8 +189,7 @@ RemoveOperationTest::testMultipleCopies() void RemoveOperationTest::canSendRemoveWhenAllReplicaNodesRetired() { - _distributor->enableClusterState( - lib::ClusterState("distributor:1 storage:1 .0.s:r")); + enableDistributorClusterState("distributor:1 storage:1 .0.s:r"); addNodesToBucketDB(bucketId, "0=123"); sendRemove(); |