测试:修改一些令测试失败的问题
This commit is contained in:
@@ -58,7 +58,7 @@ function testGroupMsg(pinusClient: PinusWSClient, roleInfo: any, pinusClientT: P
|
||||
setTimeout(() => {
|
||||
expect(msgReceiveCnt).to.be.equal(2);
|
||||
done();
|
||||
}, 1000);
|
||||
}, 2000);
|
||||
});
|
||||
}, 100);
|
||||
}
|
||||
|
||||
@@ -84,7 +84,8 @@ describe('寻宝创建队伍', function() {
|
||||
pinusClient.on('onTeamJoin', (msg) => {
|
||||
checkSuccessResponse(msg);
|
||||
});
|
||||
pinusClient.request('role.heroHandler.addItem', { id: createTeamParms.blueprtId, count: 1 }, res => {
|
||||
pinusClient.request('role.heroHandler.addItem', { id: createTeamParms.blueprtId, count: 10 }, res => {
|
||||
checkSuccessResponse(res);
|
||||
pinusClient.request('battle.comBattleHandler.createTeam', createTeamParms, (res) => {
|
||||
checkSuccessResponse(res);
|
||||
expect(res.data.teamCode).to.be.a('string');
|
||||
|
||||
@@ -3,12 +3,9 @@ import 'mocha';
|
||||
import { PinusWSClient } from 'pinus-robot-plugin';
|
||||
import { expect } from 'chai';
|
||||
import { checkSuccessResponse, checkDisplayItems } from './CheckPatten';
|
||||
import { DEBUG_MAGIC_WORD, AUCTION_SOURCE, CURRENCY_BY_TYPE, CURRENCY_TYPE, AUCTION_STAGE, DIVIDEND_STATUS } from '../app/consts';
|
||||
import { LOT_STATUS, TASK_FUN_TYPE } from '../../shared/consts';
|
||||
import { take } from 'underscore';
|
||||
import { DEBUG_MAGIC_WORD } from '../app/consts';
|
||||
import { TASK_FUN_TYPE } from '../../shared/consts';
|
||||
|
||||
const GOOD_ID_TIEJIAN = 1;
|
||||
const GOOD_ID_GANGJIAN = 2;
|
||||
|
||||
describe('任务测试', function () {
|
||||
let pinusClient: PinusWSClient;
|
||||
@@ -16,9 +13,8 @@ describe('任务测试', function () {
|
||||
|
||||
beforeEach(function (done) {
|
||||
const c = new Client();
|
||||
const cT = new Client('13121622738');
|
||||
const timer = setInterval(() => {
|
||||
if (c.client && cT.client) {
|
||||
if (c.client) {
|
||||
pinusClient = c.client;
|
||||
roleInfo = c.roleInfo;
|
||||
clearInterval(timer);
|
||||
|
||||
Reference in New Issue
Block a user