chore: switch saucelabs to websocket protocol (#2399)

* Since saucelabs already supports Websockets now and it's faster we should use Websockets here.
  Reference: https://saucelabs.com/blog/sauce-connect-gets-a-speed-boost-websocket-support
This commit is contained in:
Paul Gschwendtner
2016-12-28 04:34:19 +01:00
committed by Jeremy Elbourn
parent 3230c33f54
commit dccbe41188
-5
View File
@@ -103,11 +103,6 @@ export function config(config) {
if (platform == 'saucelabs') {
config.sauceLabs.build = buildId;
config.sauceLabs.tunnelIdentifier = process.env.TRAVIS_JOB_NUMBER;
// TODO(mlaval): remove once SauceLabs supports websockets.
// This speeds up the capturing a bit, as browsers don't even try to use websocket.
console.log('>>>> setting socket.io transport to polling <<<<');
config.transports = ['polling'];
} else if (platform == 'browserstack') {
config.browserStack.build = buildId;
config.browserStack.tunnelIdentifier = process.env.TRAVIS_JOB_NUMBER;