forked from mtusi2026/mtusi2026lab5
test(cluster): observe confirmed writes after longer rolling actions
This commit is contained in:
@@ -59,7 +59,12 @@ def exercise(client, session, chat, action, *, seconds=15):
|
||||
thread.start()
|
||||
key = uuid4().hex
|
||||
try:
|
||||
while time.monotonic() - started < seconds or not finished.is_set():
|
||||
while (
|
||||
time.monotonic() - started < seconds
|
||||
or not finished.is_set()
|
||||
or time.monotonic() - started
|
||||
< action_result.get("finished", 0) + 2
|
||||
):
|
||||
h = {**auth(session), "Idempotency-Key": key}
|
||||
try:
|
||||
r = client.post(path, headers=h, json={"text": key})
|
||||
|
||||
Reference in New Issue
Block a user