Skip to content

Commit

Permalink
Merge pull request #4715 from progval/test-server-teardown
Browse files Browse the repository at this point in the history
tests/server: Tear down test fixtures in the order they were setup
  • Loading branch information
MaxLeiter committed Mar 20, 2023
2 parents b408843 + edc6f77 commit 4babd17
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/server.ts
Expand Up @@ -39,10 +39,12 @@ describe("Server", function () {
});

after(function (done) {
server.close(done);
// Tear down test fixtures in the order they were setup,
// in case setup crashed for any reason
logInfoStub.restore();
logWarnStub.restore();
checkForUpdatesStub.restore();
server.close(done);
});

// eslint-disable-next-line @typescript-eslint/restrict-template-expressions
Expand Down

0 comments on commit 4babd17

Please sign in to comment.