Skip to content

Commit

Permalink
resolve test failure
Browse files Browse the repository at this point in the history
  • Loading branch information
delulu committed Nov 4, 2019
1 parent 26f9b5f commit 8cecfee
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion locust/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ def parse_options():
# Number of clients to incease by Step
parser.add_argument(
'--step-clients',
type='int',
type=int,
default=1,
help="Client count to increase by step in Step Load mode. Only used together with --step-load"
)
Expand Down
4 changes: 2 additions & 2 deletions locust/test/test_runners.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def __init__(self):
self.master_bind_host = '*'
self.master_bind_port = 5557
self.heartbeat_liveness = 3
self.heartbeat_interval = 3
self.heartbeat_interval = 1
self.stop_timeout = None
self.step_load = True

Expand Down Expand Up @@ -216,7 +216,7 @@ class MyTestLocust(Locust):
with mock.patch("locust.rpc.rpc.Server", mocked_rpc_server()) as server:
master = MasterLocustRunner(MyTestLocust, self.options)
server.mocked_send(Message("client_ready", None, "fake_client"))
sleep(0.1)
sleep(6)
# print(master.clients['fake_client'].__dict__)
assert master.clients['fake_client'].state == STATE_MISSING

Expand Down
2 changes: 1 addition & 1 deletion locust/web.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
from .stats import distribution_csv, failures_csv, median_from_dict, requests_csv, sort_stats
from .util.cache import memoize
from .util.rounding import proper_round
from .util.time import parse_timespan
from .util.timespan import parse_timespan

logger = logging.getLogger(__name__)

Expand Down

0 comments on commit 8cecfee

Please sign in to comment.