fix(tests): shorten long-lived connection test timeouts and update certificate metadata timestamps
This commit is contained in:
@@ -85,7 +85,7 @@ tap.test('websocket keep-alive settings for SNI passthrough', async (tools) => {
|
||||
|
||||
// Test actual long-lived connection behavior
|
||||
tap.test('long-lived connection survival test', async (tools) => {
|
||||
tools.timeout(70000); // This test waits 65 seconds
|
||||
tools.timeout(60000); // This test waits 55 seconds
|
||||
console.log('\n=== Testing long-lived connection survival ===');
|
||||
|
||||
// Create a simple echo server
|
||||
@@ -137,12 +137,12 @@ tap.test('long-lived connection survival test', async (tools) => {
|
||||
}
|
||||
}, 20000); // Every 20 seconds
|
||||
|
||||
// Wait 65 seconds to ensure it survives past old 30s and 60s timeouts
|
||||
await new Promise(resolve => setTimeout(resolve, 65000));
|
||||
// Wait 55 seconds to verify connection survives past old 30s timeout
|
||||
await new Promise(resolve => setTimeout(resolve, 55000));
|
||||
|
||||
// Check if connection is still alive
|
||||
const isAlive = client.writable && !client.destroyed;
|
||||
console.log(`Connection alive after 65 seconds: ${isAlive}`);
|
||||
console.log(`Connection alive after 55 seconds: ${isAlive}`);
|
||||
expect(isAlive).toBeTrue();
|
||||
|
||||
// Clean up
|
||||
|
||||
Reference in New Issue
Block a user