Skip to content

Commit

Permalink
close for realz?
Browse files Browse the repository at this point in the history
  • Loading branch information
SanderGi committed Nov 18, 2023
1 parent 7fa6c40 commit e8bacb6
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions test/server.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@ console.log = async (message) => {
console.error = console.log
console.log('# Test logs created on ' + new Date().toISOString())

// // close the default server that server.js starts so that we can start our own server for testing
// await new Promise((resolve, reject) => listener.close(resolve));

// ============================ TESTS ============================
describe('Server', () => {
before(async () => {
Expand All @@ -32,7 +29,8 @@ describe('Server', () => {
});

after(async () => {
await close();
// close the last db connection after all tests are done
await new Promise((resolve, reject) => close(resolve));
});

describe('General Functionality', () => {
Expand Down

0 comments on commit e8bacb6

Please sign in to comment.