summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLamont Nelson <lamont.nelson@mongodb.com>2020-02-25 18:01:00 -0500
committerLamont Nelson <lamont.nelson@mongodb.com>2020-02-25 18:01:00 -0500
commit28debf8832d7d6a8924bd4586ddede94e005013b (patch)
treed5b186f187bb04459238d430b760bf14049e0df3
parent19abeae803ece9c84b6b979b9b22504c05e4a5bb (diff)
downloadmongo-28debf8832d7d6a8924bd4586ddede94e005013b.tar.gz
fix topology test
-rw-r--r--src/mongo/client/disable_streamable_rsm_flag_test.cpp12
-rw-r--r--src/mongo/client/sdam/topology_state_machine_test.cpp9
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)