Skip to content

Commit 680bb79

Browse files
author
Matt Gaunt
committed
Error out when downloads fail
1 parent 58195db commit 680bb79

File tree

2 files changed

+4
-12
lines changed

2 files changed

+4
-12
lines changed

test/helpers/download-test-browsers.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,9 @@
2929
return Promise.all(promises)
3030
.then(function() {
3131
console.log('Download complete.');
32+
})
33+
.catch(function(err) {
34+
console.error('Unable to download browsers and Geckodriver.', err);
35+
process.exit(1);
3236
});
3337
})();

test/testSelenium.js

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -55,18 +55,6 @@
5555
return Promise.resolve();
5656
}
5757

58-
if (browser.getSeleniumBrowserId() === 'firefox' &&
59-
process.platform === 'darwin' &&
60-
process.env.TRAVIS === 'true') {
61-
console.log('');
62-
console.warn(chalk.red(
63-
'Running on Travis OS X so skipping firefox tests as ' +
64-
'they don\'t currently work.'
65-
));
66-
console.log('');
67-
return Promise.resolve();
68-
}
69-
7058
return createServer(options, webPush)
7159
.then(function(server) {
7260
globalServer = server;

0 commit comments

Comments
 (0)