Skip to content

Commit

Permalink
locustio#1884 missing snake_case style
Browse files Browse the repository at this point in the history
  • Loading branch information
tyge68 committed Sep 15, 2021
1 parent d1b2597 commit 2448717
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions locust/test/test_runners.py
Original file line number Diff line number Diff line change
Expand Up @@ -693,13 +693,13 @@ def incr_stats(self):
# start 3 Worker runners
workers = []

def addWorker():
def add_worker():
worker_env = Environment(user_classes=[TestUser])
worker = worker_env.create_worker_runner("127.0.0.1", master.server.port)
workers.append(worker)

for i in range(3):
addWorker()
add_worker()

# give workers time to connect
sleep(0.1)
Expand All @@ -711,7 +711,7 @@ def addWorker():
self.assertEqual(2, worker.user_count)
# give time for users to generate stats, and stats to be sent to master
# Add 1 more workers (should be 4 now)
addWorker()
add_worker()

@retry(AssertionError, tries=10, delay=0.5)
def check_rebalanced_true():
Expand All @@ -721,8 +721,8 @@ def check_rebalanced_true():
# Check that all workers have a user count > 0 at least
check_rebalanced_true()
# Add 2 more workers (should be 6 now)
addWorker()
addWorker()
add_worker()
add_worker()

@retry(AssertionError, tries=10, delay=0.5)
def check_rebalanced_equals():
Expand Down

0 comments on commit 2448717

Please sign in to comment.