Skip to content

Commit

Permalink
CXX-897 Account for SERVER-22041 changes in test
Browse files Browse the repository at this point in the history
  • Loading branch information
acmorrow committed Apr 18, 2016
1 parent ea3978a commit a95f89a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/mongo/integration/standalone/dbclient_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1051,7 +1051,12 @@ TEST_F(DBClientTest, CountWithHint) {
ASSERT_NO_THROW(c->count(TEST_NS, bad));
}

ASSERT_EQUALS(c->count(TEST_NS, Query().hint("b_1")), 2U);
// In 3.3, the behavior here changed, see SERVER-22041 for details.
if (serverGTE(c.get(), 3, 3)) {
ASSERT_EQUALS(c->count(TEST_NS, Query().hint("b_1")), 0U);
} else {
ASSERT_EQUALS(c->count(TEST_NS, Query().hint("b_1")), 2U);
}
}

TEST_F(DBClientTest, CopyDatabaseNoAuth) {
Expand Down

0 comments on commit a95f89a

Please sign in to comment.