Skip to content

Commit

Permalink
test: unflake launcher test (#2049)
Browse files Browse the repository at this point in the history
  • Loading branch information
dgozman committed Apr 30, 2020
1 parent 953dd36 commit 848ea69
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/launcher.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ describe('Playwright', function() {
const page = await (await browser.newContext()).newPage();
let error = null;
const neverResolves = page.evaluate(() => new Promise(r => {})).catch(e => error = e);
await page.evaluate(() => new Promise(f => setTimeout(f, 0)));
await browser.close();
await neverResolves;
expect(error.message).toContain('Protocol error');
Expand Down

0 comments on commit 848ea69

Please sign in to comment.