update
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
import * as plugins from '@git.zone/tstest/tapbundle';
|
||||
import { expect, tap } from '@git.zone/tstest/tapbundle';
|
||||
import * as net from 'net';
|
||||
import { startTestServer, stopTestServer } from '../server.loader.js';
|
||||
import { startTestServer, stopTestServer } from '../../helpers/server.loader.js';
|
||||
|
||||
const TEST_PORT = 2525;
|
||||
|
||||
@ -121,7 +121,7 @@ tap.test('REL-06: Network interruption - Sudden connection drop', async (tools)
|
||||
const socket2 = await createConnection();
|
||||
const recoverySuccess = await testBasicSmtpFlow(socket2);
|
||||
|
||||
expect(recoverySuccess).toBeTrue();
|
||||
expect(recoverySuccess).toEqual(true);
|
||||
console.log('✓ Server recovered from sudden connection drop');
|
||||
done.resolve();
|
||||
} catch (error) {
|
||||
@ -178,7 +178,7 @@ tap.test('REL-06: Network interruption - Data transfer interruption', async (too
|
||||
const newSocket = await createConnection();
|
||||
const recoverySuccess = await testBasicSmtpFlow(newSocket);
|
||||
|
||||
expect(recoverySuccess).toBeTrue();
|
||||
expect(recoverySuccess).toEqual(true);
|
||||
console.log('✓ Server recovered from data transfer interruption');
|
||||
done.resolve();
|
||||
} catch (error) {
|
||||
@ -271,7 +271,7 @@ tap.test('REL-06: Network interruption - Partial command interruption', async (t
|
||||
const newSocket = await createConnection();
|
||||
const recoverySuccess = await testBasicSmtpFlow(newSocket);
|
||||
|
||||
expect(recoverySuccess).toBeTrue();
|
||||
expect(recoverySuccess).toEqual(true);
|
||||
console.log('✓ Server recovered from partial command interruption');
|
||||
done.resolve();
|
||||
} catch (error) {
|
||||
@ -401,7 +401,7 @@ tap.test('REL-06: Network interruption - Long delay recovery', async (tools) =>
|
||||
const newSocket = await createConnection();
|
||||
const recoverySuccess = await testBasicSmtpFlow(newSocket);
|
||||
|
||||
expect(recoverySuccess).toBeTrue();
|
||||
expect(recoverySuccess).toEqual(true);
|
||||
console.log('✓ Server recovered after long network interruption');
|
||||
done.resolve();
|
||||
} catch (error) {
|
||||
|
Reference in New Issue
Block a user