From 8b4f29ac24720a78bc3cea4f343997568f36becb Mon Sep 17 00:00:00 2001 From: Miren Esnaola Date: Tue, 11 Apr 2023 21:42:06 +0200 Subject: [PATCH] Fixed wait_time in locust script --- .../gke/autopilot/bundle/locust/image/locust-files/test.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/blueprints/gke/autopilot/bundle/locust/image/locust-files/test.py b/blueprints/gke/autopilot/bundle/locust/image/locust-files/test.py index def61168..da399ad8 100644 --- a/blueprints/gke/autopilot/bundle/locust/image/locust-files/test.py +++ b/blueprints/gke/autopilot/bundle/locust/image/locust-files/test.py @@ -21,8 +21,8 @@ class TestUser(HttpUser): host = os.getenv("URL", "http://nginx.sample.svc.cluster.local") - wait_time = between(int(os.getenv('MIN_WAIT_TIME'), 1), - int(os.getenv('MAX_WAIT_TIME'), 2)) + wait_time = between(int(os.getenv('MIN_WAIT_TIME', 1)), + int(os.getenv('MAX_WAIT_TIME', 2))) @task def home(self):