Skip to content

Commit

Permalink
try fix: driver.close()
Browse files Browse the repository at this point in the history
  • Loading branch information
Zen-cronic committed Dec 6, 2023
1 parent 9343cb6 commit ba33382
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions server/src/__tests__/ui/events.search.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,17 @@ describe("/events/search", () => {
jest.setTimeout(30000);

let chromeCapabilities = Capabilities.chrome();

const chromeOptions = {
args: [
"--window-size=1920,1080",
// "--headless"
"--disable-dev-shm-usage",
"--no-sandbox"
],
};


chromeCapabilities.set("goog:chromeOptions", chromeOptions);

driver = new Builder()
Expand Down Expand Up @@ -97,7 +100,7 @@ describe("/events/search", () => {
});

afterAll(async () => {
// await driver.close();
await driver.close();
await Event.deleteMany();
await mongoose.disconnect();
await mongoose.connection.close();
Expand Down

0 comments on commit ba33382

Please sign in to comment.