From d54a1f2468d5bec011950696d66a8b404eb2723c Mon Sep 17 00:00:00 2001 From: Siarhei Fedartsou Date: Wed, 29 May 2024 09:21:21 +0200 Subject: [PATCH] wip --- scripts/ci/locustfile.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/ci/locustfile.py b/scripts/ci/locustfile.py index e628cd4f2..4d66deea8 100644 --- a/scripts/ci/locustfile.py +++ b/scripts/ci/locustfile.py @@ -44,7 +44,7 @@ class OSRMTasks(TaskSet): track_id = random.choice(self.track_ids) track_coords = self.tracks[track_id][:num_coords] coords_str = ";".join([f"{coord[1]:.6f},{coord[0]:.6f}" for coord in track_coords]) - radiues_str = ";".join([f"5" for _ in range(num_coords)]) + radiues_str = ";".join([f"{random.randint(5, 20)}" for _ in range(len(track_coords))]) with self.client.get(f"/match/v1/driving/{coords_str}?steps=true&radiuses={radiues_str}", name="match", catch_response=True) as response: if response.status_code == 400: