diff options
author | ADAM David Alan Martin <adam.martin@10gen.com> | 2017-11-28 21:42:05 -0500 |
---|---|---|
committer | ADAM David Alan Martin <adam.martin@10gen.com> | 2017-11-28 21:53:31 -0500 |
commit | 1c8800e3b730d2f574a4b3439d141849d24f4919 (patch) | |
tree | 0ee3e99c9423341a37abe5a471b697f35f120397 /src/mongo/util/net/ssl_manager_test.cpp | |
parent | 88fa04b3791d1e53444601432677bb0cf86dc293 (diff) | |
download | mongo-1c8800e3b730d2f574a4b3439d141849d24f4919.tar.gz |
SERVER-32059 Fix SSL test on windows.
It turns out that the SSL test depends upon `windows.h` and the
include order fiasco that ensues.
Diffstat (limited to 'src/mongo/util/net/ssl_manager_test.cpp')
-rw-r--r-- | src/mongo/util/net/ssl_manager_test.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mongo/util/net/ssl_manager_test.cpp b/src/mongo/util/net/ssl_manager_test.cpp index 162e0644cab..cb3140a1c0f 100644 --- a/src/mongo/util/net/ssl_manager_test.cpp +++ b/src/mongo/util/net/ssl_manager_test.cpp @@ -28,6 +28,8 @@ #define MONGO_LOG_DEFAULT_COMPONENT ::mongo::logger::LogComponent::kNetwork +#include "mongo/platform/basic.h" + #include "mongo/util/net/ssl_manager.h" #include "mongo/config.h" @@ -70,7 +72,7 @@ TEST(SSLManager, matchHostname) { }; bool failure = false; for (const auto& test : tests) { - if (test.expected != hostNameMatchForX509Certificates(test.hostname, test.certName)) { + if (bool(test.expected) != hostNameMatchForX509Certificates(test.hostname, test.certName)) { failure = true; LOG(1) << "Failure for Hostname: " << test.hostname << " Certificate: " << test.certName; |