diff options
author | Matt Mastracci <matthew@mastracci.com> | 2024-04-08 16:18:14 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-08 16:18:14 -0600 |
commit | 47061a4539feab411fbbd7db5604f4bd4a532051 (patch) | |
tree | 5f6f17066b6f967b1504ef9b762288ad670d1389 /tests/unit/tls_test.ts | |
parent | 6157c8563484e53b1917c811e94e4b5afa01dc67 (diff) |
feat(ext/net): Refactor TCP socket listeners for future clustering mode (#23037)
Changes:
- Implements a TCP socket listener that will allow for round-robin
load-balancing in-process.
- Cleans up the raw networking code to make it easier to work with.
Diffstat (limited to 'tests/unit/tls_test.ts')
-rw-r--r-- | tests/unit/tls_test.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/unit/tls_test.ts b/tests/unit/tls_test.ts index 81d8de315..8f0a296c7 100644 --- a/tests/unit/tls_test.ts +++ b/tests/unit/tls_test.ts @@ -1562,6 +1562,7 @@ Deno.test({ conn.close(); listener1Recv = true; p1 = undefined; + listener1.close(); }).catch(() => {}); } if (!p2) { @@ -1569,14 +1570,13 @@ Deno.test({ conn.close(); listener2Recv = true; p2 = undefined; + listener2.close(); }).catch(() => {}); } const conn = await Deno.connectTls({ hostname, port, caCerts }); conn.close(); await Promise.race([p1, p2]); } - listener1.close(); - listener2.close(); }); Deno.test({ |