Skip to content

Commit

Permalink
Use new wait time API in examples
Browse files Browse the repository at this point in the history
  • Loading branch information
heyman committed Oct 24, 2019
1 parent cc1d379 commit 4095119
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
5 changes: 2 additions & 3 deletions examples/fast_http_locust.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from locust import HttpLocust, TaskSet, task
from locust import HttpLocust, TaskSet, task, between
from locust.contrib.fasthttp import FastHttpLocust


Expand All @@ -18,7 +18,6 @@ class WebsiteUser(FastHttpLocust):
using the fast HTTP client
"""
host = "http://127.0.0.1:8089"
min_wait = 2000
max_wait = 5000
wait_time = between(2, 5)
task_set = UserTasks

5 changes: 2 additions & 3 deletions examples/nested_inline_tasksets.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
from locust import HttpLocust, TaskSet, task
from locust import HttpLocust, TaskSet, task, between


class WebsiteUser(HttpLocust):
"""
Example of the ability of inline nested TaskSet classes
"""
host = "http://127.0.0.1:8089"
min_wait = 2000
max_wait = 5000
wait_time = between(2, 5)

class task_set(TaskSet):
@task
Expand Down

0 comments on commit 4095119

Please sign in to comment.