update
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import { tap, expect } from '@git.zone/tstest/tapbundle';
|
||||
import * as net from 'net';
|
||||
import * as tls from 'tls';
|
||||
import { startTestServer, stopTestServer } from '../server.loader.js';
|
||||
import { startTestServer, stopTestServer } from '../../helpers/server.loader.js';
|
||||
import type { SmtpServer } from '../../../ts/mail/delivery/smtpserver/index.js';
|
||||
const TEST_PORT = 2525;
|
||||
const TEST_PORT_TLS = 30465;
|
||||
@@ -82,7 +82,7 @@ tap.test('TLS Versions - should support STARTTLS capability', async (tools) => {
|
||||
socket.end();
|
||||
|
||||
// STARTTLS is optional but common
|
||||
expect(true).toBeTrue();
|
||||
expect(true).toEqual(true);
|
||||
|
||||
} finally {
|
||||
done.resolve();
|
||||
@@ -105,7 +105,7 @@ tap.test('TLS Versions - should support modern TLS versions on secure port', asy
|
||||
|
||||
// At least one modern version should be supported
|
||||
const supportsModernTls = tls12Result.success || tls13Result.success;
|
||||
expect(supportsModernTls).toBeTrue();
|
||||
expect(supportsModernTls).toEqual(true);
|
||||
|
||||
if (tls12Result.success) {
|
||||
console.log('TLS 1.2 supported with cipher:', tls12Result.cipher);
|
||||
@@ -137,7 +137,7 @@ tap.test('TLS Versions - should reject obsolete TLS versions', async (tools) =>
|
||||
console.log(`TLS 1.1 ${tls11Result.success ? 'accepted (legacy support)' : 'rejected (good)'}`);
|
||||
|
||||
// Either behavior is acceptable - log the results
|
||||
expect(true).toBeTrue();
|
||||
expect(true).toEqual(true);
|
||||
|
||||
} finally {
|
||||
done.resolve();
|
||||
@@ -261,7 +261,7 @@ async function testTlsVersion(version: string, port: number): Promise<{success:
|
||||
tap.test('cleanup - stop SMTP servers', async () => {
|
||||
await stopTestServer();
|
||||
await stopTestServer(testServerTls);
|
||||
expect(true).toBeTrue();
|
||||
expect(true).toEqual(true);
|
||||
});
|
||||
|
||||
tap.start();
|
||||
|
||||
Reference in New Issue
Block a user