diff options
Diffstat (limited to 'src/mongo/client')
-rw-r--r-- | src/mongo/client/disable_streamable_rsm_flag_test.cpp | 12 | ||||
-rw-r--r-- | src/mongo/client/sdam/topology_state_machine_test.cpp | 9 |
2 files changed, 12 insertions, 9 deletions
diff --git a/src/mongo/client/disable_streamable_rsm_flag_test.cpp b/src/mongo/client/disable_streamable_rsm_flag_test.cpp index 1ceda7ce401..c2fc271a949 100644 --- a/src/mongo/client/disable_streamable_rsm_flag_test.cpp +++ b/src/mongo/client/disable_streamable_rsm_flag_test.cpp @@ -36,11 +36,11 @@ //#include "mongo/unittest/unittest.h" //#include "mongo/util/assert_util.h" // -//namespace mongo { -//namespace { +// namespace mongo { +// namespace { // -//class RSMDisableStreamableFlagTestFixture : public unittest::Test { -//protected: +// class RSMDisableStreamableFlagTestFixture : public unittest::Test { +// protected: // void setUp() { // setGlobalServiceContext(ServiceContext::make()); // ReplicaSetMonitor::cleanup(); @@ -96,7 +96,7 @@ // * Checks that a StreamableReplicaSetMonitor is created when the the // * disableStreamableReplicaSetMonitor flag is set to false. // */ -//TEST_F(RSMDisableStreamableFlagTestFixture, checkIsStreamableIfDisableStreamableIsFalse) { +// TEST_F(RSMDisableStreamableFlagTestFixture, checkIsStreamableIfDisableStreamableIsFalse) { // setParameter(false); // auto uri = MongoURI::parse("mongodb://a,b,c/?replicaSet=name"); // ASSERT_OK(uri.getStatus()); @@ -115,7 +115,7 @@ // * Checks that a ScanningReplicaSetMonitor is created when the disableStreamableReplicaSetMonitor // * flag is set to true. // */ -//TEST_F(RSMDisableStreamableFlagTestFixture, checkIsScanningIfDisableStreamableIsTrue) { +// TEST_F(RSMDisableStreamableFlagTestFixture, checkIsScanningIfDisableStreamableIsTrue) { // setParameter(true); // auto uri = MongoURI::parse("mongodb://a,b,c/?replicaSet=name"); // ASSERT_OK(uri.getStatus()); diff --git a/src/mongo/client/sdam/topology_state_machine_test.cpp b/src/mongo/client/sdam/topology_state_machine_test.cpp index 0ed51ce4b6c..cf2036d70fc 100644 --- a/src/mongo/client/sdam/topology_state_machine_test.cpp +++ b/src/mongo/client/sdam/topology_state_machine_test.cpp @@ -167,7 +167,8 @@ TEST_F(TopologyStateMachineTestFixture, const auto serverAddress = (*kTwoSeedReplicaSetNoPrimaryConfig.getSeedList()).front(); TopologyStateMachine stateMachine(kTwoSeedReplicaSetNoPrimaryConfig); - auto topologyDescription = std::make_shared<TopologyDescription>(kTwoSeedReplicaSetNoPrimaryConfig); + auto topologyDescription = + std::make_shared<TopologyDescription>(kTwoSeedReplicaSetNoPrimaryConfig); auto serverDescription = ServerDescriptionBuilder() .withAddress(serverAddress) @@ -192,7 +193,8 @@ TEST_F(TopologyStateMachineTestFixture, const auto primaryAddress = (*kTwoSeedReplicaSetNoPrimaryConfig.getSeedList()).back(); TopologyStateMachine stateMachine(kTwoSeedReplicaSetNoPrimaryConfig); - auto topologyDescription = std::make_shared<TopologyDescription>(kTwoSeedReplicaSetNoPrimaryConfig); + auto topologyDescription = + std::make_shared<TopologyDescription>(kTwoSeedReplicaSetNoPrimaryConfig); auto primaryDescription = ServerDescriptionBuilder() .withAddress(primaryAddress) @@ -233,7 +235,8 @@ TEST_F(TopologyStateMachineTestFixture, const auto me = std::string("foo") + serverAddress; TopologyStateMachine stateMachine(kTwoSeedReplicaSetNoPrimaryConfig); - auto topologyDescription = std::make_shared<TopologyDescription>(kTwoSeedReplicaSetNoPrimaryConfig); + auto topologyDescription = + std::make_shared<TopologyDescription>(kTwoSeedReplicaSetNoPrimaryConfig); auto serverDescription = ServerDescriptionBuilder() .withAddress(serverAddress) |