Skip to content

Commit a8160c0

Browse files
Michael FeroMichael Penick
authored andcommitted
test: Fixing authentication tests
Error messages are now duplicated in the connector and the control connection.
1 parent 5400745 commit a8160c0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cpp-driver/gtests/src/integration/tests/test_auth.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ CASSANDRA_INTEGRATION_TEST_F(AuthenticationTests, InvalidNullPasswordCredentials
182182
*/
183183
Session session = connect_using_credentials(i, "user", NULL);
184184
ASSERT_EQ(session.connect_error_code(), CASS_ERROR_SERVER_BAD_CREDENTIALS);
185-
ASSERT_EQ(logger_.count(), 1u);
185+
ASSERT_GE(logger_.count(), 1u);
186186
logger_.reset_count();
187187
}
188188
}
@@ -219,7 +219,7 @@ CASSANDRA_INTEGRATION_TEST_F(AuthenticationTests, BadCredentials) {
219219
*/
220220
Session session = connect_using_credentials(i, "invalid", "invalid");
221221
ASSERT_EQ(session.connect_error_code(), CASS_ERROR_SERVER_BAD_CREDENTIALS);
222-
ASSERT_EQ(logger_.count(), 1u);
222+
ASSERT_GE(logger_.count(), 1u);
223223
logger_.reset_count();
224224
}
225225
}
@@ -258,5 +258,5 @@ CASSANDRA_INTEGRATION_TEST_F(AuthenticationTests, AuthenticatorSetErrorNull) {
258258
Session session = connect_using_credentials(CASS_HIGHEST_SUPPORTED_PROTOCOL_VERSION,
259259
"invalid", "invalid");
260260
ASSERT_EQ(session.connect_error_code(), CASS_ERROR_SERVER_BAD_CREDENTIALS);
261-
ASSERT_EQ(logger_.count(), 1u);
261+
ASSERT_GE(logger_.count(), 1u);
262262
}

0 commit comments

Comments
 (0)