From a3571c24c4a3868d00e1fb10cc997fd7ca95a43a Mon Sep 17 00:00:00 2001 From: Dmitry Gozman Date: Mon, 13 Apr 2020 14:30:51 -0700 Subject: [PATCH] fix(testrunner): respect timeout=0 in hooks (#1764) --- utils/testrunner/TestRunner.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/testrunner/TestRunner.js b/utils/testrunner/TestRunner.js index b40972b24f..8a4fd1859a 100644 --- a/utils/testrunner/TestRunner.js +++ b/utils/testrunner/TestRunner.js @@ -384,7 +384,7 @@ class TestRunner { onTestRunFinished = async (testRun) => {}, } = options; this._breakOnFailure = breakOnFailure; - this._hookTimeout = hookTimeout; + this._hookTimeout = hookTimeout === 0 ? 100000000 : hookTimeout; this._delegate = { onStarted, onFinished,