mirror of
https://github.com/tiennm99/ccs.git
synced 2026-07-16 12:15:57 +00:00
fix: increase timeout in connection tracking test for CI
Built [OnSteroids](https://onsteroids.ai) Co-Authored-By: OnSteroids <built@onsteroids.ai>
This commit is contained in:
co-authored by
OnSteroids
parent
9e9cbd4858
commit
e7e95e6970
@@ -284,8 +284,12 @@ BAMMCGxvY2FsaG9zdDAeFw0yNDAxMDEwMDAwMDBaFw0yNTAxMDEwMDAwMDBaMBMx
|
||||
// Stop should forcefully close connections
|
||||
tunnel.stop();
|
||||
|
||||
// Socket should be destroyed
|
||||
await new Promise((resolve) => setTimeout(resolve, 50));
|
||||
// Socket should be destroyed (allow more time for CI environments)
|
||||
// Wait up to 500ms for socket to be destroyed
|
||||
for (let i = 0; i < 10; i++) {
|
||||
if (socket.destroyed) break;
|
||||
await new Promise((resolve) => setTimeout(resolve, 50));
|
||||
}
|
||||
expect(socket.destroyed).toBe(true);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user