Skip to content

Commit

Permalink
test: fix should poll on interval test (#2180)
Browse files Browse the repository at this point in the history
  • Loading branch information
kblok committed May 11, 2020
1 parent ae8d97c commit 437d1b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/waittask.spec.js
Expand Up @@ -50,7 +50,7 @@ describe('Frame.waitForFunction', function() {
}
return Date.now() - window.__startTime;
}, {}, {polling});
expect(timeDelta).not.toBeLessThan(polling);
expect(await timeDelta.jsonValue()).not.toBeLessThan(polling);
});
it('should throw on polling:mutation', async({page, server}) => {
const error = await page.waitForFunction(() => true, {}, {polling: 'mutation'}).catch(e => e);
Expand Down

0 comments on commit 437d1b6

Please sign in to comment.