Fixed wait_time in locust script

This commit is contained in:
Miren Esnaola
2023-04-11 21:42:06 +02:00
parent f41362eb8f
commit 8b4f29ac24

View File

@@ -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):