This commit is contained in:
2025-05-23 21:20:39 +00:00
parent 9629329bc2
commit 0907949f8a
86 changed files with 654 additions and 569 deletions

View File

@@ -108,7 +108,7 @@ tap.test('Rate Limiting - should limit rapid consecutive connections', async (to
// Note: We consider the test passed if rate limiting is either working OR not configured
// Many SMTP servers don't have rate limiting, which is also valid
expect(true).toBeTrue();
expect(true).toEqual(true);
} finally {
done.resolve();
@@ -219,11 +219,11 @@ tap.test('Rate Limiting - should allow connections after rate limit period', asy
} catch (error) {
console.log('Retry connection failed:', error);
// Some servers might have longer rate limit periods
expect(true).toBeTrue();
expect(true).toEqual(true);
}
} else {
console.log('Rate limiting not triggered or not configured');
expect(true).toBeTrue();
expect(true).toEqual(true);
}
} finally {
@@ -309,7 +309,7 @@ tap.test('Rate Limiting - should limit rapid MAIL FROM commands', async (tools)
socket.end();
// Test passes regardless - rate limiting is optional
expect(true).toBeTrue();
expect(true).toEqual(true);
} finally {
done.resolve();
@@ -318,7 +318,7 @@ tap.test('Rate Limiting - should limit rapid MAIL FROM commands', async (tools)
tap.test('cleanup - stop SMTP server', async () => {
await stopTestServer(testServer);
expect(true).toBeTrue();
expect(true).toEqual(true);
});
tap.start();