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

@@ -1,11 +1,15 @@
import { tap, expect } from '@git.zone/tstest/tapbundle';
import { startTestServer, stopTestServer, type ITestServer } from './helpers/server.loader.js';
import * as plugins from '../ts/plugins.js';
import { startTestServer, stopTestServer, type ITestServer } from '../../helpers/server.loader.js';
import * as plugins from '../../../ts/plugins.js';
let testServer: SmtpServer;
const TEST_PORT = 2525;
let testServer: ITestServer;
tap.test('setup - start SMTP server with short timeout', async () => {
testServer = await startTestServer();
testServer = await startTestServer({
port: TEST_PORT,
timeout: 5000 // 5 second timeout for this test
});
await new Promise(resolve => setTimeout(resolve, 1000));
});
@@ -124,7 +128,7 @@ tap.test('CM-03: Active connection should not timeout', async () => {
});
tap.test('cleanup - stop SMTP server', async () => {
await stopTestServer();
await stopTestServer(testServer);
});
tap.start();