From 918dc5fc8d431a82275f5cf42a55cb02982d363f Mon Sep 17 00:00:00 2001 From: M Sazzadul Hoque <7600764+sazzad16@users.noreply.github.com> Date: Tue, 12 Nov 2024 06:07:43 +0600 Subject: [PATCH] Use CommandInfo for subcommand --- src/test/java/io/redis/test/utils/EnabledOnCommandRule.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/test/java/io/redis/test/utils/EnabledOnCommandRule.java b/src/test/java/io/redis/test/utils/EnabledOnCommandRule.java index ef88f96b69..aa9e79b886 100644 --- a/src/test/java/io/redis/test/utils/EnabledOnCommandRule.java +++ b/src/test/java/io/redis/test/utils/EnabledOnCommandRule.java @@ -105,8 +105,8 @@ private boolean isCommandAvailable(Jedis jedisClient, String command, String sub // If a subCommand is provided, check for the subcommand under this command if (subCommand != null && !subCommand.isEmpty()) { // Check if this command supports the provided subcommand - for (String supportedSubCommand : commandInfo.getSubcommands()) { - if (subCommand.equalsIgnoreCase(supportedSubCommand)) { + for (CommandInfo supportedSubCommand : commandInfo.getSubcommands()) { + if ((command+subCommand).equalsIgnoreCase(supportedSubCommand.getName())) { return true; } }