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 () => {