diff options
Diffstat (limited to 'packages/meshbay-hub/tests/test_video_buffer_ceiling.py')
| -rw-r--r-- | packages/meshbay-hub/tests/test_video_buffer_ceiling.py | 4 |
1 files changed, 3 insertions, 1 deletions
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") |