Fix test case error

This commit is contained in:
heavyrain lee
2019-07-21 11:44:54 +08:00
parent 37998e76d1
commit 1f46debd0c
@@ -294,7 +294,7 @@ public class Main {
//初始化机器人API //初始化机器人API
RobotHttpUtils.init("http://localhost:18080", "robot1", "123456"); RobotHttpUtils.init("http://localhost", "robot1", "123456");
//*********************************************** //***********************************************
//**** 机器人API //**** 机器人API
//*********************************************** //***********************************************
@@ -313,7 +313,7 @@ public class Main {
System.exit(-1); System.exit(-1);
} }
IMResult<InputOutputUserInfo> resultRobotGetUserInfo = RobotService.getUserInfo("user1"); IMResult<InputOutputUserInfo> resultRobotGetUserInfo = RobotService.getUserInfo("userId1");
if (resultRobotGetUserInfo != null && resultRobotGetUserInfo.getErrorCode() == ErrorCode.ERROR_CODE_SUCCESS) { if (resultRobotGetUserInfo != null && resultRobotGetUserInfo.getErrorCode() == ErrorCode.ERROR_CODE_SUCCESS) {
System.out.println("robot get user info success"); System.out.println("robot get user info success");
} else { } else {