From 66a2f08908d03768cae27d83802f9bd7c784c6c8 Mon Sep 17 00:00:00 2001 From: liangtongchuan Date: Fri, 21 Jan 2022 11:11:08 +0800 Subject: [PATCH] =?UTF-8?q?pvp=20=E6=B5=8B=E8=AF=95=E9=9C=80=E8=A6=81?= =?UTF-8?q?=E7=A1=AE=E8=AE=A4=E5=85=88=E8=8E=B7=E5=8F=96=E5=88=B0=20roleIn?= =?UTF-8?q?fo?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- game-server/test/pvp.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) {