X Tutup
Skip to content

Commit 39e9bb6

Browse files
committed
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.
1 parent a649992 commit 39e9bb6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

karma-js.conf.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,13 @@ module.exports = function(config) {
5353
port: 9876
5454
});
5555

56-
if (process.env.TRAVIS) {
56+
if (process.env.TRAVIS && process.env.MODE === 'saucelabs') {
5757
config.sauceLabs.build = 'TRAVIS #' + process.env.TRAVIS_BUILD_NUMBER + ' (' + process.env.TRAVIS_BUILD_ID + ')';
5858
config.sauceLabs.tunnelIdentifier = process.env.TRAVIS_JOB_NUMBER;
5959

6060
// TODO(mlaval): remove once SauceLabs supports websockets.
6161
// This speeds up the capturing a bit, as browsers don't even try to use websocket.
62-
config.transports = ['xhr-polling'];
62+
console.log('>>>> setting socket.io transport to polling <<<<');
63+
config.transports = ['polling'];
6364
}
6465
};

0 commit comments

Comments
 (0)
X Tutup