forked from mtusi2026/mtusi2026lab2
реализация второй лабы
This commit is contained in:
@@ -39,7 +39,7 @@ class ConcurrencyTests(ApiTestCase):
|
||||
client = Client()
|
||||
barrier.wait(timeout=10)
|
||||
return client.call("POST", "/api/v1/users", [201, 409],
|
||||
body={"username": username, "display_name": f"Клиент {worker}"})["status"]
|
||||
body={"username": username, "display_name": f"Клиент {worker}", "password": "Synthetic-password-123"})["status"]
|
||||
|
||||
with ThreadPoolExecutor(max_workers=10) as pool:
|
||||
statuses = list(pool.map(register, range(10)))
|
||||
|
||||
Reference in New Issue
Block a user