cleanup the connection config

This commit is contained in:
Fred K. Schott
2019-12-15 14:20:48 -08:00
parent cf544b74f5
commit 9580397558
3 changed files with 41 additions and 44 deletions

View File

@@ -31,8 +31,8 @@ describe('Connection', function() {
it('default options', function() {
const connection: any = new utils.common.Connection('url');
assert.strictEqual(connection._url, 'url');
assert(_.isUndefined(connection._proxyURL));
assert(_.isUndefined(connection._authorization));
assert(_.isUndefined(connection._config.proxy));
assert(_.isUndefined(connection._config.authorization));
});
describe('trace', () => {
@@ -299,7 +299,7 @@ describe('Connection', function() {
}
}
// Set the heartbeat to less than the 1 second ping response
this.api.connection._timeout = 500;
this.api.connection._config.timeout = 500;
// Drop the test runner timeout, since this should be a quick test
this.timeout(5000);
// Hook up a listener for the reconnect event