Skip to content

Commit

Permalink
Fix ACL DRYRUN test #1992
Browse files Browse the repository at this point in the history
Use correct command argument count for GET.
  • Loading branch information
mp911de committed Jul 8, 2022
1 parent eff3b42 commit 5f7c979
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ void aclDeluser() {
void aclDryRun() {
assertThatThrownBy(() -> redis.aclDryRun("non-existing", "GET", "foo", "bar"))
.isInstanceOf(RedisCommandExecutionException.class).hasMessageContaining("ERR User 'non-existing' not found");
assertThat(redis.aclDryRun("default", "GET", "foo", "bar")).isEqualTo("OK");
assertThat(redis.aclDryRun("default", "GET", "foo")).isEqualTo("OK");

AclSetuserArgs args = AclSetuserArgs.Builder.on().addCommand(CommandType.GET).keyPattern("objects:*")
.addPassword("foobared");
Expand Down

0 comments on commit 5f7c979

Please sign in to comment.