测试:加长接口等待的时间

This commit is contained in:
liangtongchuan
2021-03-07 15:27:40 +08:00
parent 52a127a4e8
commit b6aa490255
+4 -4
View File
@@ -45,7 +45,7 @@ function testGroupMsg(pinusClient: PinusWSClient, roleInfo: any, pinusClientT: P
setTimeout(() => { setTimeout(() => {
expect(msgReceiveCnt).to.be.equal(2); expect(msgReceiveCnt).to.be.equal(2);
done(); done();
}, 1000); }, 2000);
}); });
} }
@@ -109,9 +109,9 @@ describe('聊天测试', function() {
}, 1000); }, 1000);
}); });
// it('测试系统频道消息', function(done) { it('测试系统频道消息', function(done) {
// testGroupMsg(pinusClient, roleInfo, pinusClientT, CHANNEL_PREFIX.SYS, roleInfo.serverId, done); testGroupMsg(pinusClient, roleInfo, pinusClientT, CHANNEL_PREFIX.SYS, roleInfo.serverId, done);
// }); });
it('测试世界频道消息', function(done) { it('测试世界频道消息', function(done) {
testGroupMsg(pinusClient, roleInfo, pinusClientT, CHANNEL_PREFIX.WORLD, roleInfo.serverId, done); testGroupMsg(pinusClient, roleInfo, pinusClientT, CHANNEL_PREFIX.WORLD, roleInfo.serverId, done);