выполнение лр2 на 4
Skeleton contracts / contracts (pull_request) Failing after 37s

This commit is contained in:
Ilya
2026-10-09 12:44:56 +03:00
parent e914e384fc
commit 13fa1852cb
30 changed files with 585 additions and 238 deletions
+1 -6
View File
@@ -1,7 +1,4 @@
#!/usr/bin/env python3
"""Level-4 race-protection evidence: 10 clients send 100 messages concurrently;
expect exactly 100 unique messages, with no loss/duplication under pagination.
"""
import sys
import urllib.parse
import concurrent.futures
@@ -9,7 +6,7 @@ from pathlib import Path
ROOT = Path(__file__).resolve().parents[1]
sys.path.insert(0, str(ROOT / "tests"))
from client import Client, check # noqa: E402
from client import Client, check
def main():
@@ -36,8 +33,6 @@ def main():
check(len(ids) == n_messages, "expected %d responses" % n_messages)
check(len(set(ids)) == n_messages, "expected %d unique message ids, got %d" % (n_messages, len(set(ids))))
# Walk the full history back through the API to confirm the store itself
# (not just the HTTP responses) holds exactly n_messages distinct rows.
seen = []
cursor = None
while True: