Skip to content

Commit 918dc5f

Browse files
authored
Use CommandInfo for subcommand
1 parent d679f01 commit 918dc5f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/test/java/io/redis/test/utils/EnabledOnCommandRule.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,8 @@ private boolean isCommandAvailable(Jedis jedisClient, String command, String sub
105105
// If a subCommand is provided, check for the subcommand under this command
106106
if (subCommand != null && !subCommand.isEmpty()) {
107107
// Check if this command supports the provided subcommand
108-
for (String supportedSubCommand : commandInfo.getSubcommands()) {
109-
if (subCommand.equalsIgnoreCase(supportedSubCommand)) {
108+
for (CommandInfo supportedSubCommand : commandInfo.getSubcommands()) {
109+
if ((command+subCommand).equalsIgnoreCase(supportedSubCommand.getName())) {
110110
return true;
111111
}
112112
}

0 commit comments

Comments
 (0)