Skip to content

Commit 437d1b6

Browse files
authored
test: fix should poll on interval test (#2180)
1 parent ae8d97c commit 437d1b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/waittask.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ describe('Frame.waitForFunction', function() {
5050
}
5151
return Date.now() - window.__startTime;
5252
}, {}, {polling});
53-
expect(timeDelta).not.toBeLessThan(polling);
53+
expect(await timeDelta.jsonValue()).not.toBeLessThan(polling);
5454
});
5555
it('should throw on polling:mutation', async({page, server}) => {
5656
const error = await page.waitForFunction(() => true, {}, {polling: 'mutation'}).catch(e => e);

0 commit comments

Comments
 (0)