From f23c29b647cf73b84d4155996df9a1e7b58dfb9c Mon Sep 17 00:00:00 2001 From: liangtongchuan Date: Thu, 11 Mar 2021 12:19:54 +0800 Subject: [PATCH] =?UTF-8?q?=E8=81=8A=E5=A4=A9=EF=BC=9A=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E6=B5=8B=E8=AF=95=E6=9D=A1=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- game-server/test/chat.test.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/game-server/test/chat.test.ts b/game-server/test/chat.test.ts index 627d47d3a..6233949f0 100644 --- a/game-server/test/chat.test.ts +++ b/game-server/test/chat.test.ts @@ -297,7 +297,7 @@ describe('聊天测试', function() { } }); } - }, 50 * (i - 2) * ABI_STAGE.END + 50 * j); + }, 50 * (i - 2) * ABI_STAGE.END + 50 * j); // 50ms 为间隔,避免并发导致的连续升星失败 } } }); @@ -362,8 +362,9 @@ describe('聊天测试', function() { expect(res.data).to.be.an('object'); expect(res.data.targetRoleId).to.be.equal(roleInfo.roleId); expect(Date.parse(res.data.lastReadTime)).to.be.above(Date.parse(res.data.lastChatTime)); + expect(res.data.unreadCnt).to.be.equal(0); done(); - }) + }); }, 1000); }); });