From adb29222ca915fff147a398bb9e097c4b0fd5a93 Mon Sep 17 00:00:00 2001 From: Ryan Mwangi Date: Wed, 30 Oct 2024 14:56:38 +0300 Subject: [PATCH] stop the server after test --- calendar.test.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/calendar.test.js b/calendar.test.js index f7b9e07..b221b8c 100644 --- a/calendar.test.js +++ b/calendar.test.js @@ -25,6 +25,8 @@ describe('Calendar Merging API', () => { if (fs.existsSync(MERGED_CALENDARS_DIR)) { fs.rmdirSync(MERGED_CALENDARS_DIR, { recursive: true }); } + // Close the server + await new Promise(resolve => server.close(resolve)); }); test('Merge date-based calendar', async () => {