Skip to content

Commit

Permalink
Adapt tests to changed Redis response #1473
Browse files Browse the repository at this point in the history
  • Loading branch information
mp911de committed Oct 26, 2020
1 parent c0ae7e4 commit 5285edc
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -255,12 +255,12 @@ void authInvalidUsernamePassword() {
assertThat(connection.auth(username, passwd)).isEqualTo("OK");

assertThatThrownBy(() -> connection.auth(username, "invalid"))
.hasMessage("WRONGPASS invalid username-password pair");
.hasMessageContaining("WRONGPASS invalid username-password pair");

assertThat(connection.auth(aclUsername, aclPasswd)).isEqualTo("OK");

assertThatThrownBy(() -> connection.auth(aclUsername, "invalid"))
.hasMessage("WRONGPASS invalid username-password pair");
.hasMessageContaining("WRONGPASS invalid username-password pair");

connection.getStatefulConnection().close();
});
Expand Down

0 comments on commit 5285edc

Please sign in to comment.