diff --git a/im-sdk-core/src/test/java/com/easemob/im/server/model/EMUserTest.java b/im-sdk-core/src/test/java/com/easemob/im/server/model/EMUserTest.java index 3b84bb95f..935a93a6d 100644 --- a/im-sdk-core/src/test/java/com/easemob/im/server/model/EMUserTest.java +++ b/im-sdk-core/src/test/java/com/easemob/im/server/model/EMUserTest.java @@ -23,7 +23,7 @@ public void testPasswordValidate() { assertThrows(EMInvalidArgumentException.class, () -> EMUser.validatePassword(null)); // null assertThrows(EMInvalidArgumentException.class, () -> EMUser.validatePassword("")); // empty assertThrows(EMInvalidArgumentException.class, () -> EMUser - .validatePassword("000000000000000000000000000000000")); // too long, 32 bytes max + .validatePassword("000000000000000000000000000000000000000000000000000000000000000000")); // too long, 64 bytes max assertThrows(EMInvalidArgumentException.class, () -> EMUser.validatePassword("\r\n")); // invalid character assertThrows(EMInvalidArgumentException.class,