Skip to content

Commit c88ed72

Browse files
committed
Patch to use this.timeout() > 0 rather than this.enableTimeout() to work with mocha 8+
1 parent 338e42f commit c88ed72

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/testRunner/parallel/worker.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ namespace Harness.Parallel.Worker {
4141
return class extends (base as typeof Mocha.Runnable) {
4242
resetTimeout() {
4343
this.clearTimeout();
44-
if (this.enableTimeouts()) {
44+
if (this.timeout() > 0) {
4545
sendMessage({ type: "timeout", payload: { duration: this.timeout() || 1e9 } });
4646
this.timer = true;
4747
}

0 commit comments

Comments
 (0)