测试:清理打印增加注释

This commit is contained in:
liangtongchuan
2021-03-07 16:21:33 +08:00
parent 4efbd1d2a6
commit 93c00a1572

View File

@@ -30,13 +30,11 @@ function testGroupMsg(pinusClient: PinusWSClient, roleInfo: any, pinusClientT: P
const roomId = `${channel}_${channelId}`;
pinusClientT.on(ON_GROUP_MSG_ROUTE, (res) => {
checkSuccessResponse(res);
console.log('got res 1:', roomId, res);
checkGroupMsg(res.data, roleInfo.roleId, roomId, TEXT_MSG.content);
msgReceiveCnt += 1;
});
pinusClient.on(ON_GROUP_MSG_ROUTE, (res) => {
checkSuccessResponse(res);
console.log('got res 2:', roomId, res);
checkGroupMsg(res.data, roleInfo.roleId, roomId, TEXT_MSG.content);
msgReceiveCnt += 1;
});
@@ -75,6 +73,7 @@ describe('聊天测试', function() {
afterEach(function(done) {
pinusClient.disconnect();
pinusClientT.disconnect();
// disconnect 后等待 500ms供服务器清理环境、退出频道等
setTimeout(() => {
done();
}, 500);