From 832b1b76d7af37ad139a76ab352871b21ffc566a Mon Sep 17 00:00:00 2001 From: Chris Richardson Date: Tue, 29 Mar 2022 17:49:49 -0400 Subject: [PATCH] update python client. Updated client to work with locust 1.2 --- Dockerfile | 2 +- test_example.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 9fd4b0c..b482c4c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM docker.apple.com/piedss/locust:1.1.31 +FROM docker.apple.com/piedss/locust:1.1.50 RUN mkdir -p /home/locust/tests/ ADD .dist/usr/local/load_tests/locust-example /home/locust/tests/ diff --git a/test_example.py b/test_example.py index 6da10e5..db74508 100644 --- a/test_example.py +++ b/test_example.py @@ -4,7 +4,7 @@ from locust import events class MyTaskSet(TaskSet): - @task(2) + @task(1) def foo(self): start_time = time.time() time.sleep(1)