Skip to content

Commit e447798

Browse files
committed
Merge pull request #42 from NickTulett/master
Update poll for 0.3.1 results api
2 parents 345d39d + 453faff commit e447798

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/webpagetest.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -335,8 +335,8 @@ function runTest(what, options, callback) {
335335
function poll(err, data) {
336336
// poll again when test started but not complete
337337
// and not when specs are done testing
338-
if (!err && (!data || data && data.response &&
339-
data.response.statusCode !== 200) &&
338+
if (!err && (!data || data && data.data &&
339+
data.statusCode !== 200) &&
340340
!(typeof err === 'number' && data === undefined)) {
341341
polling = setTimeout(getTestResults.bind(this, testId,
342342
resultsOptions, poll.bind(this)), options.pollResults);

0 commit comments

Comments
 (0)