Skip to content

Commit

Permalink
Backport tapzero #19
Browse files Browse the repository at this point in the history
  • Loading branch information
bcomnes committed Sep 29, 2023
1 parent aae2128 commit 198c54d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions api/test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -821,11 +821,11 @@ export class Test {

this.done = true

if (this._planned !== null && this._actual !== null) {
if (this._planned > this._actual) {
if (this._planned !== null) {
if (this._planned > (this._actual || 0)) {
throw new Error(`Test ended before the planned number
planned: ${this._planned}
actual: ${this._actual}
actual: ${this._actual || 0}
`
)
}
Expand Down

0 comments on commit 198c54d

Please sign in to comment.