This commit is contained in:
aozhiwei 2023-08-09 18:55:13 +08:00
parent ab0dafc260
commit 93d0c372ba

View File

@ -40,11 +40,12 @@ class TestCase {
constructor(url) { constructor(url) {
this.relationUrl = 'ws://127.0.0.1:7132'; this.relationUrl = 'ws://127.0.0.1:7132';
this.loginData = null; this.loginData = null;
/*
this.relationWs = new ClientNet( this.relationWs = new ClientNet(
this.relationUrl, this.relationUrl,
'proto/cs_proto.proto', 'proto/cs_proto.proto',
'proto/cs_msgid.proto' 'proto/cs_msgid.proto'
); );*/
} }
async init() { async init() {
@ -73,6 +74,7 @@ class TestCase {
} }
async step2() { async step2() {
/*
await this.relationWs.init(); await this.relationWs.init();
await this.relationWs.connect(); await this.relationWs.connect();
this.relationWs.on('connect', () => { this.relationWs.on('connect', () => {
@ -83,7 +85,7 @@ class TestCase {
account_id: this.loginData['account_id'], account_id: this.loginData['account_id'],
session_id: this.loginData['session_id'], session_id: this.loginData['session_id'],
}); });
}); });*/
} }
} }