Skip to content

Commit

Permalink
tests: use done() when closing express servers (pouchdb#8840)
Browse files Browse the repository at this point in the history
  • Loading branch information
alxndrsn authored Jan 7, 2024
1 parent c7054c2 commit 5054bf8
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions tests/component/test.deletion_error.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ describe('test.deletion_error.js', function () {
server = app.listen(0);
});

after(function () {
return server.close();
after(function (done) {
server.close(done);
});

it('Test error during deletion', function () {
Expand Down
4 changes: 2 additions & 2 deletions tests/component/test.read_only_replication.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ describe('test.read_only_replication.js', function () {
server = app.listen(0);
});

after(function () {
return server.close();
after(function (done) {
server.close(done);
});

it('Test checkpointer handles error codes', function () {
Expand Down
4 changes: 2 additions & 2 deletions tests/component/test.replication_perf_regression.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ describe('test.replication_perf_regression.js', function () {
};
});

after(function () {
return server.close();
after(function (done) {
server.close(done);
});

it('#5199 fix excessively long replication loop', function () {
Expand Down

0 comments on commit 5054bf8

Please sign in to comment.