Skip to content
This repository has been archived by the owner on Jan 19, 2021. It is now read-only.

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
cahrens committed Aug 14, 2019
1 parent 3d0e43e commit 04bfb11
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/test_runner.js
Original file line number Diff line number Diff line change
Expand Up @@ -194,15 +194,15 @@ class TestRunner {
_.map(this.listeners,
(listener) => new Promise((innerResolve) => {
const _listener = listener.flush();
if(_listener){
if (_listener) {
_listener.then(() => innerResolve())
.catch((err) => {
logger.err(`Error when flushing listener output: ${err}. ` +
"This error doesn't impact test result");
// we eat this error and contiue the listner.flush()
return innerResolve();
});
}else{
} else {
innerResolve();
}
})))
Expand Down

0 comments on commit 04bfb11

Please sign in to comment.