Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions lib/webpagetest.js
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,9 @@ function runTest(what, options, callback) {

// poll results
if (options.pollResults && !options.dryRun) {
options.pollResults = parseInt(options.pollResults * 1000, 10) || 5000;
// setting the lower limit to 20s
options.pollResults = Math.max(20, options.pollResults) * 1000;
options.pollResults = parseInt(options.pollResults, 10) || 60000;
Comment thread
Siddhantshukla814 marked this conversation as resolved.
Outdated

return api.call(
this,
Expand Down Expand Up @@ -537,7 +539,7 @@ function runTest(what, options, callback) {
function runTestAndWait(what, options, callback) {
delete options.pollResults;

options = Object.assign(options, { pollResults: 13 });
options = Object.assign(options, { pollResults: 60 });
Comment thread
Siddhantshukla814 marked this conversation as resolved.
Outdated

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