Skip to content

Commit ed1178d

Browse files
initial commit
1 parent f6dba94 commit ed1178d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lib/webpagetest.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -474,7 +474,9 @@ function runTest(what, options, callback) {
474474

475475
// poll results
476476
if (options.pollResults && !options.dryRun) {
477-
options.pollResults = parseInt(options.pollResults * 1000, 10) || 5000;
477+
// setting the lower limit to 20s
478+
options.pollResults = Math.max(20, options.pollResults) * 1000;
479+
options.pollResults = parseInt(options.pollResults, 10) || 60000;
478480

479481
return api.call(
480482
this,
@@ -537,7 +539,7 @@ function runTest(what, options, callback) {
537539
function runTestAndWait(what, options, callback) {
538540
delete options.pollResults;
539541

540-
options = Object.assign(options, { pollResults: 13 });
542+
options = Object.assign(options, { pollResults: 60 });
541543

542544
new Promise((resolve) => {
543545
let test = runTest.bind(this, what, options, callback);

0 commit comments

Comments
 (0)