We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ea3978a commit a95f89aCopy full SHA for a95f89a
src/mongo/integration/standalone/dbclient_test.cpp
@@ -1051,7 +1051,12 @@ TEST_F(DBClientTest, CountWithHint) {
1051
ASSERT_NO_THROW(c->count(TEST_NS, bad));
1052
}
1053
1054
- ASSERT_EQUALS(c->count(TEST_NS, Query().hint("b_1")), 2U);
+ // In 3.3, the behavior here changed, see SERVER-22041 for details.
1055
+ if (serverGTE(c.get(), 3, 3)) {
1056
+ ASSERT_EQUALS(c->count(TEST_NS, Query().hint("b_1")), 0U);
1057
+ } else {
1058
+ ASSERT_EQUALS(c->count(TEST_NS, Query().hint("b_1")), 2U);
1059
+ }
1060
1061
1062
TEST_F(DBClientTest, CopyDatabaseNoAuth) {
0 commit comments