From 39e9bb64efcd539125a1ed18098b910eeb53462b Mon Sep 17 00:00:00 2001 From: Igor Minar Date: Sat, 3 Oct 2015 09:40:13 -0700 Subject: [PATCH] fix(karma): socket.io 1.x transport is now called 'polling' instead of 'xhr-polling' And we really need it only when using sauce, so I'm making the condition more strict. --- karma-js.conf.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/karma-js.conf.js b/karma-js.conf.js index 9430f3d89f..3072e690cb 100644 --- a/karma-js.conf.js +++ b/karma-js.conf.js @@ -53,12 +53,13 @@ module.exports = function(config) { port: 9876 }); - if (process.env.TRAVIS) { + if (process.env.TRAVIS && process.env.MODE === 'saucelabs') { config.sauceLabs.build = 'TRAVIS #' + process.env.TRAVIS_BUILD_NUMBER + ' (' + process.env.TRAVIS_BUILD_ID + ')'; 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. - config.transports = ['xhr-polling']; + console.log('>>>> setting socket.io transport to polling <<<<'); + config.transports = ['polling']; } };