diff options
author | Sara Golemon <sara.golemon@mongodb.com> | 2018-09-17 20:47:30 +0000 |
---|---|---|
committer | Sara Golemon <sara.golemon@mongodb.com> | 2018-09-17 20:50:34 +0000 |
commit | d246e38f3dad15b9919773ffe6a2fa59288034f2 (patch) | |
tree | efcde245a9e1194e20dc7744511db7e327c6eb49 /src/mongo | |
parent | beba8d70803cc14768c577bc7ec1aff5c0c352ed (diff) | |
download | mongo-d246e38f3dad15b9919773ffe6a2fa59288034f2.tar.gz |
SERVER-36572 Enbironment::count() returns bool, not int.
Diffstat (limited to 'src/mongo')
-rw-r--r-- | src/mongo/util/options_parser/options_parser_test.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/util/options_parser/options_parser_test.cpp b/src/mongo/util/options_parser/options_parser_test.cpp index 1da9570f41d..61526634598 100644 --- a/src/mongo/util/options_parser/options_parser_test.cpp +++ b/src/mongo/util/options_parser/options_parser_test.cpp @@ -4742,8 +4742,8 @@ TEST(YAMLConfigFile, canonicalize) { }; std::map<std::string, std::string> env_map; ASSERT_OK(parser.run(opts, argv, env_map, &env)); - ASSERT_EQ(env.count("net.bindIp"), 1); - ASSERT_EQ(env.count("net.bindIpAll"), 0); + ASSERT_TRUE(env.count("net.bindIp")); + ASSERT_FALSE(env.count("net.bindIpAll")); ASSERT_EQ(env["net.bindIp"].as<std::string>(), "0.0.0.0"); } |