测试:添加战斗测试

This commit is contained in:
luying
2021-11-03 20:04:06 +08:00
parent 88e7ee906d
commit fb59fcd0ca
13 changed files with 364 additions and 22 deletions

View File

@@ -10,7 +10,7 @@ describe('抽卡测试', function () {
let pinusClient: PinusWSClient;
let roleInfo;
beforeEach(function (done) {
before(function (done) {
const c = new Client();
const timer = setInterval(() => {
if (c.client) {
@@ -22,7 +22,7 @@ describe('抽卡测试', function () {
}, 500);
});
afterEach(function (done) {
after(function (done) {
pinusClient.disconnect();
// disconnect 后等待 500ms供服务器清理环境、退出频道等
setTimeout(() => {