Skip to content

Commit 77b222a

Browse files
Allowed timeout param & Removed repetition
1 parent d053608 commit 77b222a

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

lib/webpagetest.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -536,12 +536,11 @@ function runTest(what, options, callback) {
536536
}
537537

538538
function runTestAndWait(what, options, callback) {
539-
delete options.pollResults, options.timeout;
540-
delete options.timeout;
539+
delete options.pollResults;
541540

542-
options = Object.assign(options, { pollResults: 10 });
541+
options = Object.assign(options, { pollResults: 13 });
543542

544-
new Promise((resolve) => {
543+
return new Promise((resolve) => {
545544
let test = runTest.bind(this, what, options, callback);
546545
resolve(test());
547546
});

0 commit comments

Comments
 (0)