diff options
Diffstat (limited to 'src/mongo/client/sdam/topology_description_test.cpp')
-rw-r--r-- | src/mongo/client/sdam/topology_description_test.cpp | 26 |
1 files changed, 14 insertions, 12 deletions
diff --git a/src/mongo/client/sdam/topology_description_test.cpp b/src/mongo/client/sdam/topology_description_test.cpp index 4ae91fe7edd..0d892e2f68a 100644 --- a/src/mongo/client/sdam/topology_description_test.cpp +++ b/src/mongo/client/sdam/topology_description_test.cpp @@ -84,18 +84,20 @@ TEST_F(TopologyDescriptionTestFixture, ShouldHaveCorrectDefaultValues) { assertDefaultConfig(TopologyDescription()); } -TEST_F(TopologyDescriptionTestFixture, ShouldNormalizeInitialSeedList) { - auto config = SdamConfiguration(kTwoServersVaryCase); - TopologyDescription topologyDescription(config); - - auto expectedAddresses = kTwoServersNormalCase; - - auto serverAddresses = map<ServerDescriptionPtr, ServerAddress>( - topologyDescription.getServers(), - [](const ServerDescriptionPtr& description) { return description->getAddress(); }); - - ASSERT_EQUALS(expectedAddresses, serverAddresses); -} +// Disable this test since this causes failures in jstests running on +// hosts with mixed case hostnames. +// TEST_F(TopologyDescriptionTestFixture, ShouldNormalizeInitialSeedList) { +// auto config = SdamConfiguration(kTwoServersVaryCase); +// TopologyDescription topologyDescription(config); +// +// auto expectedAddresses = kTwoServersNormalCase; +// +// auto serverAddresses = map<ServerDescriptionPtr, ServerAddress>( +// topologyDescription.getServers(), +// [](const ServerDescriptionPtr& description) { return description->getAddress(); }); +// +// ASSERT_EQUALS(expectedAddresses, serverAddresses); +//} TEST_F(TopologyDescriptionTestFixture, ShouldAllowTypeSingleWithASingleSeed) { TopologyDescription topologyDescription(kSingleSeedConfig); |