[FIX] fix test hang in microsoft edge

This commit is contained in:
Ivan Tivonenko
2016-03-15 04:17:02 +02:00
parent 9ac1a89e48
commit 1d31fccd72
3 changed files with 3 additions and 4 deletions

View File

@@ -33,7 +33,7 @@
"assert-diff": "^1.0.1",
"babel-cli": "^6.4.0",
"babel-core": "^6.4.0",
"babel-eslint": "^4.1.6",
"babel-eslint": "^4.1.8",
"babel-loader": "^6.2.1",
"babel-plugin-syntax-flow": "^6.3.13",
"babel-plugin-transform-flow-strip-types": "^6.4.0",

View File

@@ -1,4 +1,3 @@
'use strict';
const _ = require('lodash');
const MochaSauce = require('mocha-in-sauce');
@@ -18,7 +17,6 @@ function main() {
maxDuration: 180000,
// the current build name (optional)
build: Date.now(),
seleniumVersion: '2.50.1',
url: testUrl,
runSauceConnect: true
};

View File

@@ -117,7 +117,8 @@ describe('Connection', function() {
}
}
const connection = new utils.common.Connection('ws://127.0.0.1:321');
const connection =
new utils.common.Connection('ws://testripple.circleci.com:129');
connection.on('error', done);
connection.connect().catch(error => {
assert(error instanceof this.api.errors.NotConnectedError);