not rejecting tests, but resolving with status when failing to avoid node error about unhandled rejection

This commit is contained in:
2017-05-27 01:46:38 +02:00
parent e2ac035997
commit 055d36c74e
2 changed files with 3 additions and 3 deletions

View File

@ -57,7 +57,7 @@ export class TapTest {
} catch (err) {
this.hrtMeasurement.stop()
console.log(`not ok ${testKeyArg + 1} - ${this.description} # time=${this.hrtMeasurement.milliSeconds}ms`)
this.testDeferred.reject()
this.testDeferred.resolve(this)
// if the test has already succeeded before
if (this.status === 'success') {