Skip to content

Commit

Permalink
🐛 Flush stdout before exiting after running tests (#14653)
Browse files Browse the repository at this point in the history
  • Loading branch information
rsimha authored and glevitzky committed Apr 27, 2018
1 parent 0bb9ac1 commit fa228c0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions build-system/tasks/runtime-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,8 @@ function runTests() {
log(red('ERROR:'), 'Only integration tests may be run on the full set of ' +
'Sauce Labs browsers');
log('Use', cyan('--saucelabs'), 'with', cyan('--integration'));
// Flush stdout.
process.stdout.write('\n');
process.exit();
}

Expand Down Expand Up @@ -346,6 +348,8 @@ function runTests() {
log(yellow(
'Shutting down test responses server on localhost:31862'));
process.nextTick(function() {
// Flush stdout.
process.stdout.write('\n');
process.exit();
});
}));
Expand Down Expand Up @@ -376,6 +380,8 @@ function runTests() {
log(
red('ERROR:'),
yellow('Karma test failed with exit code ' + exitCode));
// Flush stdout.
process.stdout.write('\n');
process.exit(exitCode);
} else {
resolver();
Expand Down

0 comments on commit fa228c0

Please sign in to comment.