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

This commit is contained in:
Dmitry Gozman 2020-04-13 14:30:51 -07:00 committed by GitHub
parent 29a6cdff6b
commit a3571c24c4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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,