pvp 测试需要确认先获取到 roleInfo
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user