Skip to content

Commit

Permalink
tests: upgrade code to support locust 1.0+
Browse files Browse the repository at this point in the history
  • Loading branch information
Diego Rodriguez committed Nov 24, 2020
1 parent c20c85c commit d4a1201
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/benchmark/locustfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

import os

from locust import HttpLocust, TaskSet, between, task
from locust import HttpUser, TaskSet, between, task

TOKEN = os.environ.get("REANA_ACCESS_TOKEN")

Expand Down Expand Up @@ -80,8 +80,8 @@ def get_worflow_logs(self):
)


class WebsiteUser(HttpLocust):
class WebsiteUser(HttpUser):
"""Locust instance. Represent the user that attacks the system."""

task_set = WorkflowsTaskSet
tasks = [WorkflowsTaskSet]
wait_time = between(5, 10)

0 comments on commit d4a1201

Please sign in to comment.