From 5183085e62aa2c2b0179aff249d7bc7bf4b401ae Mon Sep 17 00:00:00 2001 From: M Sazzadul Hoque <7600764+sazzad16@users.noreply.github.com> Date: Sat, 23 Oct 2021 19:02:57 +0600 Subject: [PATCH] XADD wrong number of arguments message changed (#2672) --- .../clients/jedis/tests/commands/StreamsCommandsTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/test/java/redis/clients/jedis/tests/commands/StreamsCommandsTest.java b/src/test/java/redis/clients/jedis/tests/commands/StreamsCommandsTest.java index 2330e6a71f..95908f3bea 100644 --- a/src/test/java/redis/clients/jedis/tests/commands/StreamsCommandsTest.java +++ b/src/test/java/redis/clients/jedis/tests/commands/StreamsCommandsTest.java @@ -44,7 +44,7 @@ public void xadd() { jedis.xadd("stream1", null, map1); fail(); } catch (JedisDataException expected) { - assertEquals("ERR wrong number of arguments for 'xadd' command", expected.getMessage()); + assertTrue(expected.getMessage().contains("wrong number of arguments")); } Map map1 = new HashMap<>(); @@ -92,7 +92,7 @@ public void xaddWithParams() { jedis.xadd("stream1", new HashMap<>(), XAddParams.xAddParams()); fail(); } catch (JedisDataException expected) { - assertEquals("ERR wrong number of arguments for 'xadd' command", expected.getMessage()); + assertTrue(expected.getMessage().contains("wrong number of arguments")); } StreamEntryID id1 = jedis.xadd("xadd-stream1", null, Collections.singletonMap("f1", "v1"));