Patch to use this.timeout() > 0 rather than this.enableTimeout() to work with mocha 8+

This commit is contained in:
Wesley Wigham committed 2020-06-15 12:12:55 -07:00
1 parent 338e42fabe
commit c88ed727de
1 file changed
+1 -1
+1 -1
View File
@@ -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;
}