Skip to content

Commit 764fdaf

Browse files
committed
Assert 200 response code to break polling
1 parent 36fdb2b commit 764fdaf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/test_imms_api_sync.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ def test_create_imms_record_then_verify_on_children_page(
9696
# Poll until the search queue has drained (GET returns 200 when empty)
9797
for _ in range(1200):
9898
r = httpx.get(api_url, timeout=30)
99-
if r.is_success:
99+
if r.status_code == httpx.codes.OK:
100100
break
101101
deliberate_sleep(0.25, "waiting for IMMS search queue to drain")
102102
r.raise_for_status()

0 commit comments

Comments
 (0)