test(e2e): retry a leaked video job until the guardrail sync deadline

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
yucheng 2026-09-21 22:44:05 +00:00
parent a44befa8c5
commit dfc5ef70b4

View file

@ -71,7 +71,7 @@ class TestKeyAttachedGuardrailOnVideos:
f"block response missing content-filter reason: {body[:300]}"
)
return
case Success(data=video):
case Success(data=video) if time.monotonic() >= deadline:
pytest.fail(
f"key-attached guardrail {guardrail_name!r} was skipped on /v1/videos: "
f"the banned prompt reached the provider and started video job {video.id}"