Skip to content

Commit 0528245

Browse files
committed
CXX 440 no need for 2.2 fallback if test is not run on 2.2
1 parent 491784c commit 0528245

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/mongo/integration/standalone/dbclient_test.cpp

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1414,11 +1414,7 @@ namespace {
14141414
if (serverGTE(&c, 2, 4) && (!serverGTE(&c, 2, 7) || kCompiledWithSSL)) {
14151415
createUser(c, TEST_DB, "user3", "password3");
14161416
std::string errmsg;
1417-
try {
1418-
ASSERT_FALSE(c.auth("test", "user3", "notPassword3", errmsg));
1419-
} catch (const DBException&) {
1420-
//Expected on 2.2
1421-
}
1417+
ASSERT_FALSE(c.auth("test", "user3", "notPassword3", errmsg));
14221418
}
14231419
}
14241420

0 commit comments

Comments
 (0)