Skip to content

Commit

Permalink
Patch to use this.timeout() > 0 rather than this.enableTimeout() to w…
Browse files Browse the repository at this point in the history
…ork with mocha 8+
  • Loading branch information
weswigham committed Jun 15, 2020
1 parent 338e42f commit c88ed72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/testRunner/parallel/worker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ namespace Harness.Parallel.Worker {
return class extends (base as typeof Mocha.Runnable) {
resetTimeout() {
this.clearTimeout();
if (this.enableTimeouts()) {
if (this.timeout() > 0) {
sendMessage({ type: "timeout", payload: { duration: this.timeout() || 1e9 } });
this.timer = true;
}
Expand Down

0 comments on commit c88ed72

Please sign in to comment.