diff options
Diffstat (limited to 'packages/meshbay-hub/tests')
| -rw-r--r-- | packages/meshbay-hub/tests/test_upload_controls_hidden.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/packages/meshbay-hub/tests/test_upload_controls_hidden.py b/packages/meshbay-hub/tests/test_upload_controls_hidden.py index 9290a94..955b47d 100644 --- a/packages/meshbay-hub/tests/test_upload_controls_hidden.py +++ b/packages/meshbay-hub/tests/test_upload_controls_hidden.py @@ -109,8 +109,12 @@ def test_the_notice_still_answers_the_operators_own_request(app): caused it — returning early on it would leave that request hanging until it timed out.""" transport = TRANSPORT.read_text(encoding="utf-8") + # Scoped to member_upload_ack's own handler, not everything up to the next + # occurrence of "index_sync" — other handlers with their own, legitimate + # early `return` (index_progress, set_scan_settings_ack: neither is ever a + # reply anyone awaits) now sit between the two in the file. block = transport[transport.index("member_upload_ack"):] - block = block[:block.index("index_sync")] + block = block[:block.index("apps_enabled_ack")] assert "return" not in block |