Skip to content

Commit

Permalink
Update plugin tests
Browse files Browse the repository at this point in the history
  • Loading branch information
cyberw committed May 30, 2024
1 parent 6cc9a66 commit 8535222
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions tests/outputs/login_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

import os

from locust_plugins.listeners import StopUserOnFail
from locust_plugins import listeners
from svs_locust import RestUser

os.environ["LOCUST_TEST_ENV"] = "itp1"
os.environ["LOCUST_TEST_ENV"] = "test3"
os.environ["LOCUST_TENANT"] = "lb"


Expand All @@ -14,7 +14,7 @@ def on_locust_init(environment, **_kwargs):
import time

environment.events.request.add_listener(lambda *args, **kw: time.sleep(0.1))
StopUserOnFail(environment)
listeners.StopUserOnFail(environment)


class login(RestUser):
Expand Down
6 changes: 3 additions & 3 deletions tests/outputs/reqres_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
import os
import re

from locust_plugins.listeners import StopUserOnFail
from locust_plugins import listeners
from svs_locust import RestUser

os.environ["LOCUST_TEST_ENV"] = "itp1"
os.environ["LOCUST_TEST_ENV"] = "test3"
os.environ["LOCUST_TENANT"] = "lb"


Expand All @@ -15,7 +15,7 @@ def on_locust_init(environment, **_kwargs):
import time

environment.events.request.add_listener(lambda *args, **kw: time.sleep(0.1))
StopUserOnFail(environment)
listeners.StopUserOnFail(environment)


class reqres_in(RestUser):
Expand Down

0 comments on commit 8535222

Please sign in to comment.