diff --git a/examples/synchronizer_ex.py b/examples/synchronizer_ex.py index e826501..ba98ec2 100644 --- a/examples/synchronizer_ex.py +++ b/examples/synchronizer_ex.py @@ -20,7 +20,7 @@ class MyUser(HttpUser): @task def my_task(self): customer = synchronizer.getdata(self) - self.client.get(f"/{customer['ssn']}") + self.client.get(f"/?{customer['ssn']}") if __name__ == "__main__": diff --git a/tox.ini b/tox.ini index 0e9a7dc..2f37da1 100644 --- a/tox.ini +++ b/tox.ini @@ -32,6 +32,8 @@ commands = grep -m 1 'Manual' output.txt grep -m 1 'LCP' output.txt bash -ec "! grep 'object has no attribute' output.txt" + bash -ec "(cd examples && PYTHONUNBUFFERED=1 locust -f synchronizer_ex.py --headless -t 5 -u 4 --processes 4) |& tee output.txt || true" + grep -m 1 '2099010101-1111' output.txt locust -f examples/jmeter_listener_example.py --headless -t 1 locust-compose up -d sleep 15