Skip to content

Commit b70fb78

Browse files
Trying to resolve hanging Sauce Labs tests
1 parent 966c00e commit b70fb78

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

karma.conf.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,13 @@ function configureSauceLabs(config) {
148148

149149
config.reporters.push('saucelabs');
150150
config.browsers = Object.keys(config.customLaunchers);
151+
152+
// Sauce Connect sometimes hangs (https://github.com/karma-runner/karma-sauce-launcher/issues/14)
153+
// So terminate the process after a few minutes
154+
setTimeout(function() {
155+
console.warn('\nWARNING: Sauce Connect appears to have hung. Forcefully terminating.\n');
156+
process.exit();
157+
}, 1000 * 60 * 8); // 8 minutes
151158
}
152159
}
153160

0 commit comments

Comments
 (0)