Skip to content

Commit

Permalink
Reference image tests: Close pages after screenshotting them
Browse files Browse the repository at this point in the history
  • Loading branch information
papandreou committed Nov 9, 2019
1 parent f8f9abc commit 7ae9494
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/referenceImages.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,9 @@ async function screenshot(browser, assetGraph, bannedUrls) {
);
}
}
return page.screenshot();
const screenshot = await page.screenshot();
await page.close();
return screenshot;
}

describe('reference images', function() {
Expand Down

0 comments on commit 7ae9494

Please sign in to comment.