Skip to content

Commit 7d22d5b

Browse files
committed
XADD wrong number of arguments message changed (#2672)
1 parent 7946cae commit 7d22d5b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/test/java/redis/clients/jedis/tests/commands/StreamsCommandsTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public void xadd() {
4444
jedis.xadd("stream1", null, map1);
4545
fail();
4646
} catch (JedisDataException expected) {
47-
assertEquals("ERR wrong number of arguments for 'xadd' command", expected.getMessage());
47+
assertTrue(expected.getMessage().contains("wrong number of arguments"));
4848
}
4949

5050
Map<String, String> map1 = new HashMap<>();
@@ -92,7 +92,7 @@ public void xaddWithParams() {
9292
jedis.xadd("stream1", new HashMap<>(), XAddParams.xAddParams());
9393
fail();
9494
} catch (JedisDataException expected) {
95-
assertEquals("ERR wrong number of arguments for 'xadd' command", expected.getMessage());
95+
assertTrue(expected.getMessage().contains("wrong number of arguments"));
9696
}
9797

9898
StreamEntryID id1 = jedis.xadd("xadd-stream1", null, Collections.singletonMap("f1", "v1"));

0 commit comments

Comments
 (0)