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"));