diff options
author | Matt Broadstone <mbroadst@mongodb.com> | 2022-02-01 14:55:44 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-02-01 16:12:55 +0000 |
commit | 1cc5df724ab48604e19a8b2f3703563c553b1ba0 (patch) | |
tree | 68493e81ddd2bc3fc790dd626ad2de689fef405c /src/mongo/db/repl/replication_coordinator_impl_reconfig_test.cpp | |
parent | b2098c676bdc64e3194734fa632b133c47496646 (diff) | |
download | mongo-1cc5df724ab48604e19a8b2f3703563c553b1ba0.tar.gz |
SERVER-62609 Represent the w parameter of WriteConcernOptions as a variant
Diffstat (limited to 'src/mongo/db/repl/replication_coordinator_impl_reconfig_test.cpp')
-rw-r--r-- | src/mongo/db/repl/replication_coordinator_impl_reconfig_test.cpp | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/src/mongo/db/repl/replication_coordinator_impl_reconfig_test.cpp b/src/mongo/db/repl/replication_coordinator_impl_reconfig_test.cpp index f738cc855f0..781c10f0df0 100644 --- a/src/mongo/db/repl/replication_coordinator_impl_reconfig_test.cpp +++ b/src/mongo/db/repl/replication_coordinator_impl_reconfig_test.cpp @@ -881,10 +881,8 @@ TEST_F(ReplCoordTest, ReconfigThatChangesIDWCFromW1toWMajWithoutCWWCSetFails) { TEST_F(ReplCoordTest, ReconfigThatChangesIDWCWMajToW1WithCWWCSetPasses) { RWConcernDefault newDefaults; - WriteConcernOptions wc; - wc.wMode = "majority"; - wc.usedDefaultConstructedWC = false; - wc.notExplicitWValue = false; + WriteConcernOptions wc( + "majority", WriteConcernOptions::SyncMode::UNSET, WriteConcernOptions::kNoTimeout); newDefaults.setDefaultWriteConcern(wc); lookupMock.setLookupCallReturnValue(std::move(newDefaults)); @@ -944,10 +942,8 @@ TEST_F(ReplCoordTest, ReconfigThatChangesIDWCWMajToW1WithCWWCSetPasses) { TEST_F(ReplCoordTest, ReconfigThatChangesIDWCW1ToWMajWithCWWCSetPasses) { RWConcernDefault newDefaults; - WriteConcernOptions wc; - wc.wMode = "majority"; - wc.usedDefaultConstructedWC = false; - wc.notExplicitWValue = false; + WriteConcernOptions wc( + "majority", WriteConcernOptions::SyncMode::UNSET, WriteConcernOptions::kNoTimeout); newDefaults.setDefaultWriteConcern(wc); lookupMock.setLookupCallReturnValue(std::move(newDefaults)); @@ -2270,10 +2266,8 @@ TEST_F(ReplCoordReconfigTest, NodesWithNewlyAddedFieldSetHavePriorityZero) { TEST_F(ReplCoordReconfigTest, ArbiterNodesShouldNeverHaveNewlyAddedField) { RWConcernDefault newDefaults; - WriteConcernOptions wc; - wc.wMode = "majority"; - wc.usedDefaultConstructedWC = false; - wc.notExplicitWValue = false; + WriteConcernOptions wc( + "majority", WriteConcernOptions::SyncMode::UNSET, WriteConcernOptions::kNoTimeout); newDefaults.setDefaultWriteConcern(wc); lookupMock.setLookupCallReturnValue(std::move(newDefaults)); |