Skip to content

Commit

Permalink
test: retry in schema forwarding test when changing compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
jjaakola-aiven committed Sep 17, 2024
1 parent 03cb394 commit d1722bf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/integration/test_master_coordinator.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,9 @@ async def test_schema_request_forwarding(registry_async_pair):
path = "config"
for compat in ["FULL", "BACKWARD", "FORWARD", "NONE"]:
resp = requests.put(f"{slave_url}/{path}", json={"compatibility": compat})
assert resp.ok
if not resp.ok:
# Allow retry if response is not ok.
continue
while True:
assert counter < max_tries, "Compat update not propagated"
resp = requests.get(f"{master_url}/{path}")
Expand Down

0 comments on commit d1722bf

Please sign in to comment.