修改测试 token,减少测试打印

This commit is contained in:
liangtongchuan
2021-02-04 17:13:24 +08:00
parent a4f2ed7380
commit 6b00dc79c4
3 changed files with 9 additions and 5 deletions

View File

@@ -50,7 +50,7 @@ describe('test zyz login', function() {
it('登录测试', function(done) {
expect(1).equal(1);
pinusClient.request('connector.entryHandler.enter', {token:'jxrka4ocnzgcgc4pt2jhsikdgktzw9myon55hp34fxjql85yxr', serverId: 1} , (ret) => {
pinusClient.request('connector.entryHandler.enter', {token:'3dc788mrgqshmu8dawocuiftf4lpkjo8sah6p023rin7396n6o', serverId: 1} , (ret) => {
// 消息回调
expect(ret).to.be.an('object');
expect(ret.code).equal(0);

View File

@@ -13,7 +13,7 @@ describe('寻宝创建队伍', function() {
var pinusClient;
var roleInfo;
const loginParms = {token:'jxrka4ocnzgcgc4pt2jhsikdgktzw9myon55hp34fxjql85yxr', serverId: 1};
const loginParms = {token:'3dc788mrgqshmu8dawocuiftf4lpkjo8sah6p023rin7396n6o', serverId: 1};
const createTeamParms = {blueprtId: 33001, pub: true, ceLimit: 0};
const searchTeamParms = {qualityArr: [1, 2, 3, 4, 5]};
@@ -44,10 +44,12 @@ describe('寻宝创建队伍', function() {
port: port
}, (data) => {
// 连接成功执行函数
console.log('gate连接成功');
// console.log('gate连接成功', data);
// done();
pinusClient.request('connector.entryHandler.enter', loginParms, (ret) => {
// 消息回调
console.log('connector返回');
// console.log('connector返回', JSON.stringify(ret));
roleInfo = ret.role;
done();

View File

@@ -41,11 +41,13 @@ describe('军团测试', function() {
port: port
}, (data) => {
// 连接成功执行函数
console.log('gate连接成功', data);
console.log('gate连接成功');
// console.log('gate连接成功', data);
// done();
pinusClient.request('connector.entryHandler.enter', {token:'jxrka4ocnzgcgc4pt2jhsikdgktzw9myon55hp34fxjql85yxr', serverId: 1} , (ret) => {
pinusClient.request('connector.entryHandler.enter', {token:'3dc788mrgqshmu8dawocuiftf4lpkjo8sah6p023rin7396n6o', serverId: 1} , (ret) => {
// 消息回调
console.log('connector返回', JSON.stringify(ret));
console.log('connector返回');
// console.log('connector返回', JSON.stringify(ret));
roleInfo = ret.role;
done();
});