Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

fix(testrunner): respect timeout=0 in hooks (#1764)

Dmitry Gozmana3571c24c4a3
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,