diff options
| author | Christophe Besson <cbesson@gmail.com> | 2026-08-22 11:50:35 +0200 |
|---|---|---|
| committer | Christophe Besson <cbesson@gmail.com> | 2026-08-22 11:50:35 +0200 |
| commit | 79130a9d4eb95db35b1d84f14f9b1b18d18299a7 (patch) | |
| tree | 5e9f4a68178a0d41a263d26e063b313ca076a68e /packages/meshbay-node/tests/test_task_lifetime.py | |
| parent | 36fde6583bef6b455d2217d65eaaee2f66c08e81 (diff) | |
| download | meshbay-79130a9d4eb95db35b1d84f14f9b1b18d18299a7.tar.gz | |
fix: update source-reading tests that drifted from the code
- test_transport_contracts: CreateGroupPage was refactored into a
routing wrapper; assertions now read CreateGroupFormSimple
- test_task_lifetime: _spawn now uses an _on_done wrapper instead of
a bare self._tasks.discard callback; assertion checks both parts
- test_video_buffer_ceiling: target the real updateend handler, not
the settled() utility; add awaitingInitRef to the MSE harness scope
- test_video_seek: silence debug console.log in window_leak harness
so it does not pollute the JSON output
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Diffstat (limited to 'packages/meshbay-node/tests/test_task_lifetime.py')
| -rw-r--r-- | packages/meshbay-node/tests/test_task_lifetime.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/meshbay-node/tests/test_task_lifetime.py b/packages/meshbay-node/tests/test_task_lifetime.py index e1ebfed..592579c 100644 --- a/packages/meshbay-node/tests/test_task_lifetime.py +++ b/packages/meshbay-node/tests/test_task_lifetime.py @@ -45,7 +45,7 @@ def test_the_session_keeps_a_reference_to_what_it_starts(session): spawn = session[session.index("def _spawn("):] spawn = spawn[:spawn.index("\n def ", 1)] assert "self._tasks.add(task)" in spawn, "the reference is what keeps it alive" - assert "add_done_callback(self._tasks.discard)" in spawn, ( + assert "self._tasks.discard(" in spawn and "add_done_callback(" in spawn, ( "without this the set grows for the life of the session") |