From 75f34ef51bdc1fdb0644bf6af227511b6fc259bc Mon Sep 17 00:00:00 2001 From: durch Date: Thu, 5 Jun 2025 11:43:04 +0200 Subject: [PATCH] Add timeout to locust --- nym-network-monitor/locustfile.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nym-network-monitor/locustfile.py b/nym-network-monitor/locustfile.py index de59b514a6..03f83ec881 100644 --- a/nym-network-monitor/locustfile.py +++ b/nym-network-monitor/locustfile.py @@ -6,7 +6,7 @@ class SendMsg(HttpUser): @task def hello_world(self): try: - response = self.client.post("/v1/send") + response = self.client.post("/v1/send", timeout=10) if response.status_code == 503: time.sleep(1) response.raise_for_status() # Raise an exception for bad status codes (4xx or 5xx)