Skip to content
This repository has been archived by the owner on Jan 17, 2023. It is now read-only.

Commit

Permalink
Speculative help for CircleCI failures
Browse files Browse the repository at this point in the history
This probably won't fix anything, but might make the failures clearer
  • Loading branch information
ianb committed Feb 19, 2019
1 parent bd5122c commit e29a593
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ let driver;
async function getDriver(preferences) {
if (driver) {
await driver.quit();
driver = null;
}

// const servicebuilder = new ServiceBuilder().enableVerboseLogging(true).setStdio("inherit");
Expand Down Expand Up @@ -174,9 +175,10 @@ describe("Test Screenshots", function() {
// await driver.switchTo().defaultContent();
});

after(function() {
after(async function() {
if (!process.env.NO_CLOSE) {
return driver.quit();
await driver.quit();
driver = null;
}
console.info("Note: leaving browser open");
return null;
Expand Down

0 comments on commit e29a593

Please sign in to comment.