mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-06-15 03:09:59 -05:00
Patch to use this.timeout() > 0 rather than this.enableTimeout() to work with mocha 8+
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user