Skip to content

Commit

Permalink
test: fix missing cleanup (#507)
Browse files Browse the repository at this point in the history
  • Loading branch information
porcellus authored Jun 24, 2022
1 parent fb541b1 commit 00e0b97
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
1 change: 0 additions & 1 deletion .mocharc.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
exit: true
spec:
- test/unit/**/*.test.js
- test/end-to-end/**/*.test.js
Expand Down
10 changes: 10 additions & 0 deletions test/end-to-end/emailverification.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -664,6 +664,16 @@ describe("Email verification signOut errors", function () {
});
});

after(async function () {
await browser.close();
await fetch(`${TEST_SERVER_BASE_URL}/after`, {
method: "POST",
}).catch(console.error);
await fetch(`${TEST_SERVER_BASE_URL}/stop`, {
method: "POST",
}).catch(console.error);
});

afterEach(function () {
return screenshotOnFailure(this, browser);
});
Expand Down

0 comments on commit 00e0b97

Please sign in to comment.