mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-11-20 20:25:48 +00:00
[FIX] fix test hang in microsoft edge
This commit is contained in:
@@ -33,7 +33,7 @@
|
|||||||
"assert-diff": "^1.0.1",
|
"assert-diff": "^1.0.1",
|
||||||
"babel-cli": "^6.4.0",
|
"babel-cli": "^6.4.0",
|
||||||
"babel-core": "^6.4.0",
|
"babel-core": "^6.4.0",
|
||||||
"babel-eslint": "^4.1.6",
|
"babel-eslint": "^4.1.8",
|
||||||
"babel-loader": "^6.2.1",
|
"babel-loader": "^6.2.1",
|
||||||
"babel-plugin-syntax-flow": "^6.3.13",
|
"babel-plugin-syntax-flow": "^6.3.13",
|
||||||
"babel-plugin-transform-flow-strip-types": "^6.4.0",
|
"babel-plugin-transform-flow-strip-types": "^6.4.0",
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
'use strict';
|
|
||||||
|
|
||||||
const _ = require('lodash');
|
const _ = require('lodash');
|
||||||
const MochaSauce = require('mocha-in-sauce');
|
const MochaSauce = require('mocha-in-sauce');
|
||||||
@@ -18,7 +17,6 @@ function main() {
|
|||||||
maxDuration: 180000,
|
maxDuration: 180000,
|
||||||
// the current build name (optional)
|
// the current build name (optional)
|
||||||
build: Date.now(),
|
build: Date.now(),
|
||||||
seleniumVersion: '2.50.1',
|
|
||||||
url: testUrl,
|
url: testUrl,
|
||||||
runSauceConnect: true
|
runSauceConnect: true
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -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.on('error', done);
|
||||||
connection.connect().catch(error => {
|
connection.connect().catch(error => {
|
||||||
assert(error instanceof this.api.errors.NotConnectedError);
|
assert(error instanceof this.api.errors.NotConnectedError);
|
||||||
|
|||||||
Reference in New Issue
Block a user