未验证 提交 48f076f2 编写于 作者: R rongtong 提交者: GitHub

fix(test):temporary fix on Mac OS when pid greater than short type max value (#2492)

上级 7f49ce41
......@@ -35,12 +35,14 @@ public class MessageClientIDSetterTest {
assertThat(ipStr).isEqualTo(ipStrFromID);
}
@Test
public void testGetPidFromID() {
int pid = UtilAll.getPid();
// Temporary fix on MacOS
short pid = (short) UtilAll.getPid();
String uniqID = MessageClientIDSetter.createUniqID();
int pidFromID = MessageClientIDSetter.getPidFromID(uniqID);
short pidFromID = (short) MessageClientIDSetter.getPidFromID(uniqID);
assertThat(pid).isEqualTo(pidFromID);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册