Skip to content

Commit

Permalink
Remove unnecessary loop for closing open pages
Browse files Browse the repository at this point in the history
  • Loading branch information
whimboo committed Dec 8, 2023
1 parent 4db0174 commit d04d28a
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions test/test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -1056,9 +1056,6 @@ async function closeSession(browser) {
continue;
}
if (session.browser !== undefined) {
for (const page of await session.browser.pages()) {
await page.close();
}
await session.browser.close();
}
session.closed = true;
Expand Down

0 comments on commit d04d28a

Please sign in to comment.