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/twophaseupdateoperationtest.cpp | |
parent | 180bc0034ae5ba6f2b5644a7c520486bbcc511bd (diff) |
Simplify distributor unit tests.
Diffstat (limited to 'storage/src/tests/distributor/twophaseupdateoperationtest.cpp')
-rw-r--r-- | storage/src/tests/distributor/twophaseupdateoperationtest.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/storage/src/tests/distributor/twophaseupdateoperationtest.cpp b/storage/src/tests/distributor/twophaseupdateoperationtest.cpp index 16d317551e0..ed961b29b1c 100644 --- a/storage/src/tests/distributor/twophaseupdateoperationtest.cpp +++ b/storage/src/tests/distributor/twophaseupdateoperationtest.cpp @@ -579,7 +579,7 @@ TwoPhaseUpdateOperationTest::testFastPathInconsistentTimestampsPutNotStarted() sender.getLastCommand(true)); checkMessageSettingsPropagatedTo(sender.commands.back()); - _distributor->enableClusterState(lib::ClusterState("storage:0 distributor:1")); + enableDistributorClusterState("storage:0 distributor:1"); CPPUNIT_ASSERT(sender.replies.empty()); replyToGet(*cb, sender, 2, 110); @@ -992,8 +992,7 @@ TwoPhaseUpdateOperationTest::testUpdateFailsIfOwnershipChangesBetweenGetAndPut() // this new state, the distributor no longer owns the bucket in question // and the operation should thus be failed. We must not try to send Puts // to a bucket we no longer own. - _distributor->enableClusterState( - lib::ClusterState("storage:2 distributor:1 .0.s:d")); + enableDistributorClusterState("storage:2 distributor:1 .0.s:d"); getBucketDatabase().clear(); replyToGet(*cb, sender, 0, 70); replyToGet(*cb, sender, 1, 70); |