tests: observe the modeling flag in the cancelled refresh_sync test

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Roland 2026-10-04 11:13:03 -06:00
parent 6b247aeb36
commit a4407ed124
No known key found for this signature in database
GPG key ID: 1BA620CE6C9A4680

View file

@ -640,7 +640,7 @@ async def test_refresh_sync_records_error_status_on_failure(async_client, test_s
@pytest.mark.asyncio
async def test_refresh_sync_resets_status_when_cancelled(async_client, test_session, test_directory,
make_files_structure):
make_files_structure, flags_lock):
"""A cancelled synchronous refresh must not strand the status at its last phase.
`refresh_sync` runs inside request handlers, which Sanic cancels on response timeout. The