Skip to content

Commit

Permalink
Add test case for synchronizer.
Browse files Browse the repository at this point in the history
  • Loading branch information
cyberw committed Dec 11, 2023
1 parent 8d485cb commit be9e188
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion examples/synchronizer_ex.py
Original file line number Diff line number Diff line change
Expand Up @@ -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__":
Expand Down
2 changes: 2 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit be9e188

Please sign in to comment.