@@ -27,7 +27,7 @@ public class ClusterCommandObjectsTest {
2727
2828 @ BeforeEach
2929 public void setUp () {
30- clusterCommandObjects = new ClusterCommandObjects ();
30+ clusterCommandObjects = new ClusterCommandObjects (RedisProtocol . RESP2 );
3131 }
3232
3333 @ Test
@@ -472,7 +472,7 @@ public void testGetKeyHashSlots_withByteArrayKey_worksCorrectly() {
472472 @ Test
473473 public void testGroupArgumentsByKeyHashSlot_withKeyPreProcessor_usesPreprocessedSlot () {
474474 // Create ClusterCommandObjects with a key preprocessor that adds a hash tag prefix
475- ClusterCommandObjects clusterCmdObjects = new ClusterCommandObjects ();
475+ ClusterCommandObjects clusterCmdObjects = new ClusterCommandObjects (RedisProtocol . RESP2 );
476476 // The prefix "{sameSlot}:" ensures all keys hash to the same slot
477477 clusterCmdObjects .setKeyArgumentPreProcessor (
478478 new redis .clients .jedis .util .PrefixedKeyArgumentPreProcessor ("{sameSlot}:" ));
@@ -519,7 +519,7 @@ public void testGroupArgumentsByKeyHashSlot_withKeyPreProcessor_usesPreprocessed
519519 */
520520 @ Test
521521 public void testGroupArgumentsByKeyValueHashSlot_withKeyPreProcessor_usesPreprocessedSlot () {
522- ClusterCommandObjects clusterCmdObjects = new ClusterCommandObjects ();
522+ ClusterCommandObjects clusterCmdObjects = new ClusterCommandObjects (RedisProtocol . RESP2 );
523523 clusterCmdObjects .setKeyArgumentPreProcessor (
524524 new redis .clients .jedis .util .PrefixedKeyArgumentPreProcessor ("{sameSlot}:" ));
525525
@@ -557,7 +557,7 @@ public void testGroupArgumentsByKeyValueHashSlot_withKeyPreProcessor_usesPreproc
557557 */
558558 @ Test
559559 public void testGroupArgumentsByKeyHashSlot_withKeyPreProcessor_differentSlotsAfterPreprocess () {
560- ClusterCommandObjects clusterCmdObjects = new ClusterCommandObjects ();
560+ ClusterCommandObjects clusterCmdObjects = new ClusterCommandObjects (RedisProtocol . RESP2 );
561561 // This preprocessor changes the hash tag, causing keys to hash to different slots
562562 clusterCmdObjects .setKeyArgumentPreProcessor (key -> {
563563 String keyStr = (String ) key ;
@@ -594,7 +594,7 @@ public void testGroupArgumentsByKeyHashSlot_withKeyPreProcessor_differentSlotsAf
594594 */
595595 @ Test
596596 public void testGroupArgumentsByKeyHashSlot_withKeyPreProcessor_binaryKeys () {
597- ClusterCommandObjects clusterCmdObjects = new ClusterCommandObjects ();
597+ ClusterCommandObjects clusterCmdObjects = new ClusterCommandObjects (RedisProtocol . RESP2 );
598598 clusterCmdObjects .setKeyArgumentPreProcessor (
599599 new redis .clients .jedis .util .PrefixedKeyArgumentPreProcessor ("{sameSlot}:" ));
600600
0 commit comments