Change 'wait' to use 'between' as recommended by locustio (#298)

This commit is contained in:
Jorge González González 2020-03-29 03:38:03 +02:00 committed by GitHub
parent 23ad0169c2
commit 997b5e8807
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 5 deletions

View File

@ -15,7 +15,7 @@
# limitations under the License.
import random
from locust import HttpLocust, TaskSet
from locust import HttpLocust, TaskSet, between
products = [
'0PUK6V6EV0',
@ -78,5 +78,4 @@ class UserBehavior(TaskSet):
class WebsiteUser(HttpLocust):
task_set = UserBehavior
min_wait = 1000
max_wait = 10000
wait_time = between(1, 10)

View File

@ -1 +1 @@
locustio==0.8.1
locustio==0.13.0

View File

@ -13,7 +13,7 @@ greenlet==0.4.15 # via gevent
idna==2.8 # via requests
itsdangerous==1.1.0 # via flask
jinja2==2.10 # via flask
locustio==0.8.1
locustio==0.13.0
markupsafe==1.1.0 # via jinja2
msgpack-python==0.5.6 # via locustio
pyzmq==17.0.0 # via locustio