diff --git a/game-server/test/pvp.test.ts b/game-server/test/pvp.test.ts index 992419dae..1087b4f26 100644 --- a/game-server/test/pvp.test.ts +++ b/game-server/test/pvp.test.ts @@ -22,14 +22,14 @@ describe('pvp测试', function () { before(function (done) { const c = new Client(); const timer = setInterval(() => { - if (c.client) { + if (c.client && c.roleInfo) { pinusClient = c.client; roleInfo = c.roleInfo; console.log('pvp got roleInfo', new Date(), JSON.stringify(roleInfo)); clearInterval(timer); done(); } - }, 1000); + }, 500); }); after(function (done) {