Skip to content

Commit

Permalink
XADD wrong number of arguments message changed (#2672)
Browse files Browse the repository at this point in the history
  • Loading branch information
sazzad16 committed Dec 12, 2021
1 parent 8187515 commit 5183085
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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<String, String> map1 = new HashMap<>();
Expand Down Expand Up @@ -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"));
Expand Down

0 comments on commit 5183085

Please sign in to comment.