diff options
author | Andy Schwerin <schwerin@mongodb.com> | 2018-07-18 13:46:53 -0400 |
---|---|---|
committer | Henrik Edin <henrik.edin@mongodb.com> | 2018-07-27 16:20:53 -0400 |
commit | bfe170e49b1dc10b2badde45bc13c057a2f8ab61 (patch) | |
tree | f71d35e019c3194d033545c73296d415e18eb496 /src/mongo/db/repl/isself_test.cpp | |
parent | 018905518ca552775255f36a52e9fd187f9d61f8 (diff) | |
download | mongo-bfe170e49b1dc10b2badde45bc13c057a2f8ab61.tar.gz |
SERVER-36258 Construct ServiceContext after mongo initializers complete.
Diffstat (limited to 'src/mongo/db/repl/isself_test.cpp')
-rw-r--r-- | src/mongo/db/repl/isself_test.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mongo/db/repl/isself_test.cpp b/src/mongo/db/repl/isself_test.cpp index 55a13c675d7..2fa60b5ae4c 100644 --- a/src/mongo/db/repl/isself_test.cpp +++ b/src/mongo/db/repl/isself_test.cpp @@ -31,6 +31,7 @@ #include "mongo/db/repl/isself.h" #include "mongo/db/server_options.h" #include "mongo/db/service_context.h" +#include "mongo/db/service_context_test_fixture.h" #include "mongo/unittest/unittest.h" #include "mongo/util/net/hostandport.h" #include "mongo/util/net/socket_utils.h" @@ -43,7 +44,7 @@ namespace { using std::string; -TEST(IsSelf, DetectsSameHostIPv4) { +TEST_F(ServiceContextTest, DetectsSameHostIPv4) { #if defined(_WIN32) || defined(__linux__) || defined(__APPLE__) bool wasEnabled = IPv6Enabled(); enableIPv6(false); @@ -60,7 +61,7 @@ TEST(IsSelf, DetectsSameHostIPv4) { #endif } -TEST(IsSelf, DetectsSameHostIPv6) { +TEST_F(ServiceContextTest, DetectsSameHostIPv6) { #if defined(_WIN32) || defined(__linux__) || defined(__APPLE__) bool wasEnabled = IPv6Enabled(); enableIPv6(true); |