From 79130a9d4eb95db35b1d84f14f9b1b18d18299a7 Mon Sep 17 00:00:00 2001 From: Christophe Besson Date: Sat, 22 Aug 2026 11:50:35 +0200 Subject: 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 --- packages/meshbay-hub/tests/test_video_buffer_ceiling.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'packages/meshbay-hub/tests/test_video_buffer_ceiling.py') diff --git a/packages/meshbay-hub/tests/test_video_buffer_ceiling.py b/packages/meshbay-hub/tests/test_video_buffer_ceiling.py index 9063c46..cf38117 100644 --- a/packages/meshbay-hub/tests/test_video_buffer_ceiling.py +++ b/packages/meshbay-hub/tests/test_video_buffer_ceiling.py @@ -201,7 +201,9 @@ def test_appending_does_not_earn_credit(app): as they could be written, which is as fast as the network allows. """ player = _player(app) - handler = player[player.index("sb.addEventListener('updateend'"):] + # The real handler, not the one-liner in settled() + marker = "sb.addEventListener('updateend', () =>" + handler = player[player.index(marker):] handler = handler[:handler.index("\n });")] assert "grantStreamCredit" not in handler, ( "credit is granted from updateend, which fires for remove() too") -- cgit v1.2.3