nonbinaryprogrammer commented on a change in pull request #5955:
URL: https://github.com/apache/geode/pull/5955#discussion_r565492510



##########
File path: 
geode-redis/src/integrationTest/java/org/apache/geode/redis/internal/executor/hash/AbstractHashesIntegrationTest.java
##########
@@ -540,6 +540,22 @@ public void testHLen() {
 
   }
 
+  @Test
+  public void testHLenErrorMessage_givenIncorrectDataType() {
+    jedis.set("farm", "chicken");
+    assertThatThrownBy(() -> jedis.hlen("farm"))
+        .isInstanceOf(JedisDataException.class)
+        .hasMessageContaining("WRONGTYPE Operation against a key holding the 
wrong kind of value");
+  }
+
+  @Test
+  public void testHLen_givenWrongNumberOfArguments() {
+    assertThatThrownBy(() -> jedis.sendCommand(Protocol.Command.HLEN))
+        .hasMessageContaining("wrong number of arguments");
+    assertThatThrownBy(() -> jedis.sendCommand(Protocol.Command.HLEN, "1", 
"2"))
+        .hasMessageContaining("wrong number of arguments");

Review comment:
       thanks! I thought I had changed them all in a previous commit but that 
was on a different branch. good catch




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to