mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
fix: allow timeouts of be 0 (#1964)
This patch fixes timeouts for `puppeteer.launch` and `page.waitForFunction` to be `0`. Fixes #1960 .
This commit is contained in:
committed by
Andrey Lushnikov
parent
37a1e17461
commit
bc6902623a
@@ -265,7 +265,7 @@ class TestRunner extends EventEmitter {
|
||||
this._currentSuite = this._rootSuite;
|
||||
this._tests = [];
|
||||
// Default timeout is 10 seconds.
|
||||
this._timeout = options.timeout === 0 ? 2147483647 : options.timeout || 10 * 1000;
|
||||
this._timeout = options.timeout === 0 ? 2147483647 : options.timeout || 10 * 1000;
|
||||
this._parallel = options.parallel || 1;
|
||||
this._retryFailures = !!options.retryFailures;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user