summaryrefslogtreecommitdiff
path: root/src/mongo/db/server_options_test.cpp
diff options
context:
space:
mode:
authorSara Golemon <sara.golemon@mongodb.com>2018-12-04 19:39:26 +0000
committerSara Golemon <sara.golemon@mongodb.com>2018-12-06 09:15:45 +0000
commitdfa007f46708ade8f66ae64bbcb9fd5744f96602 (patch)
tree0816b4834accb8bbe074e6967519f10cfe424d24 /src/mongo/db/server_options_test.cpp
parentce305db495c4ff622ba70d5d4ab916a4734ec3e7 (diff)
downloadmongo-dfa007f46708ade8f66ae64bbcb9fd5744f96602.tar.gz
SERVER-38281 Defer TLS-1.0 auto disable warning till log startup
Diffstat (limited to 'src/mongo/db/server_options_test.cpp')
-rw-r--r--src/mongo/db/server_options_test.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mongo/db/server_options_test.cpp b/src/mongo/db/server_options_test.cpp
index a6f9b592e61..03b768a3690 100644
--- a/src/mongo/db/server_options_test.cpp
+++ b/src/mongo/db/server_options_test.cpp
@@ -48,6 +48,7 @@
#include <boost/filesystem.hpp>
+#include "mongo/base/init.h"
#include "mongo/bson/util/builder.h"
#include "mongo/db/server_options.h"
#include "mongo/db/server_options_server_helpers.h"
@@ -66,6 +67,12 @@ using mongo::ErrorCodes;
using mongo::Status;
namespace moe = mongo::optionenvironment;
+MONGO_INITIALIZER(ServerLogRedirection)(mongo::InitializerContext*) {
+ // ssl_options_server.cpp has an initializer which depends on logging.
+ // We can stub that dependency out for unit testing purposes.
+ return Status::OK();
+}
+
class OptionsParserTester : public moe::OptionsParser {
public:
Status readConfigFile(const std::string& filename, std::string* config) {