diff options
| author | Christophe Besson <cbesson@gmail.com> | 2026-10-10 10:47:14 +0200 |
|---|---|---|
| committer | Christophe Besson <cbesson@gmail.com> | 2026-10-10 10:47:26 +0200 |
| commit | c642acaa812ad347d9dbf604bf391bbed970d987 (patch) | |
| tree | da1e0bbc2d3feee77d68bab12f081d534c80c57e /packages | |
| parent | 734b922370a56c7e3577c1f6bbdad69f75301334 (diff) | |
| download | meshbay-c642acaa812ad347d9dbf604bf391bbed970d987.tar.gz | |
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 <noreply@anthropic.com>
Diffstat (limited to 'packages')
| -rw-r--r-- | packages/meshbay-hub/tests/test_cast_subtitles.py | 4 |
1 files changed, 3 insertions, 1 deletions
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); }); """ |