From c642acaa812ad347d9dbf604bf391bbed970d987 Mon Sep 17 00:00:00 2001 From: Christophe Besson Date: Sat, 10 Oct 2026 10:47:14 +0200 Subject: test(hub): let the cast relay script end by itself test_cast_subtitles.py's node script called process.exit(0) right after relay.stop(), with fetch's sockets still closing. Node 24 on Windows aborted there on a libuv assertion (UV_HANDLE_CLOSING, src\win\async.c) two runs in three, after printing its results, so the module fixture failed and seven tests errored at setup. Nothing is left once the relay stops: the script ends by itself, in the same 0.1 s. Co-Authored-By: Claude Opus 5.5 --- packages/meshbay-hub/tests/test_cast_subtitles.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/meshbay-hub/tests/test_cast_subtitles.py b/packages/meshbay-hub/tests/test_cast_subtitles.py index bdc279b..6601337 100644 --- a/packages/meshbay-hub/tests/test_cast_subtitles.py +++ b/packages/meshbay-hub/tests/test_cast_subtitles.py @@ -249,7 +249,9 @@ const CastRelay = require(process.argv[2]); await relay.stop(); console.log(JSON.stringify(out)); - process.exit(0); + // No process.exit(0): with fetch's sockets still closing, Node 24 on Windows + // aborted on a libuv assertion (UV_HANDLE_CLOSING, src\\win\\async.c) two + // runs in three. Nothing is left once the relay stops, so it ends by itself. })().catch((err) => { console.error(err); process.exit(1); }); """ -- cgit v1.2.3