lab2 - оценка 4
Skeleton contracts / contracts (pull_request) Canceled after 0s

This commit is contained in:
Rakshasa2
2026-10-15 12:52:25 +03:00
parent 65003b6119
commit 84a40ae7ac
16 changed files with 2376 additions and 25 deletions
+1 -1
View File
@@ -99,7 +99,7 @@ def main():
check(proc.poll()==0,'stop-one hook did not finish successfully')
check(first_recovery is not None and first_recovery<=10,'writes did not recover within 10 seconds from hook start')
check(len(after_instances)>=5,'too few successful writes after stop')
check(target not in after_instances[-5:],'target replica still serves requests; hook must leave it stopped')
check(target not in after_instances[-5:],'target replica still server requests; hook must leave it stopped')
print(json.dumps({'observed_instances_before':len(observed),'successful_writes':len(successes),'failed_attempts':failures,'first_recovery_seconds':round(first_recovery,3)},ensure_ascii=False))
# Existing token, no re-login. Read all confirmations and reject duplicates.
messages = history(c,bob,chat)