1
0
mirror of https://github.com/Ylianst/MeshAgent synced 2025-12-28 06:03:25 +00:00

Updated tunnel test error case

This commit is contained in:
Bryan Roe
2021-02-10 01:12:41 -08:00
parent f932ef8d89
commit 9137f13ec9

View File

@@ -1027,7 +1027,7 @@ function testTunnel()
this.parent._res();
}).catch(function (e)
{
this.parent._rej(' => Tunnel Test.........................[FAILED] ' + e);
ret._rej(' => Tunnel Test.........................[FAILED] ');
});
return (ret);
@@ -1064,11 +1064,10 @@ function setup()
var ret = new promise(function (res, rej) { this._res = res; this._rej = rej; });
ret.parent = this;
this._tunnelServer.promises.push(ret);
ret.timeout = setTimeout(function (r)
ret.timeout = setTimeout(function ()
{
r._tunnelServer.promises.shift();
r._rej('timeout');
}, 2000, ret);
ret._rej('timeout');
}, 2000);
ret.options = { action: 'msg', type: 'tunnel', rights: rights, consent: consent, username: '(test script)', value: 'ws://127.0.0.1:9250/test' };
this.toAgent(ret.options);