This commit is contained in:
2025-05-24 00:23:35 +00:00
parent 0907949f8a
commit cb52446f65
76 changed files with 1401 additions and 867 deletions

View File

@ -9,7 +9,7 @@ const TEST_TIMEOUT = 30000;
let testServer: SmtpServer;
tap.test('setup - start SMTP server for abrupt disconnection tests', async () => {
testServer = await startTestServer();
testServer = testServer = await startTestServer({ port: TEST_PORT });
await new Promise(resolve => setTimeout(resolve, 1000));
});
@ -315,7 +315,7 @@ tap.test('Abrupt Disconnection - should timeout idle connections', async (tools)
});
tap.test('cleanup - stop SMTP server', async () => {
await stopTestServer();
await stopTestServer(testServer);
expect(true).toEqual(true);
});