Skip to content

Commit

Permalink
Merge pull request #2052 from cuishuang/master
Browse files Browse the repository at this point in the history
fix some typos
  • Loading branch information
cyberw authored Mar 17, 2022
2 parents d73ea3c + 691f94c commit 08aa8ae
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions examples/custom_messages.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@


def setup_test_users(environment, msg, **kwargs):
# Fired when the worker recieves a message of type 'test_users'
# Fired when the worker receives a message of type 'test_users'
usernames.extend(map(lambda u: u["name"], msg.data))
environment.runner.send_message("acknowledge_users", f"Thanks for the {len(msg.data)} users!")


def on_acknowledge(msg, **kwargs):
# Fired when the master recieves a message of type 'acknowledge_users'
# Fired when the master receives a message of type 'acknowledge_users'
print(msg.data)


Expand Down
2 changes: 1 addition & 1 deletion examples/custom_shape/double_wave.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class WebsiteUser(HttpUser):

class DoubleWave(LoadTestShape):
"""
A shape to immitate some specific user behaviour. In this example, midday
A shape to imitate some specific user behaviour. In this example, midday
and evening meal times. First peak of users appear at time_limit/3 and
second peak appears at 2*time_limit/3
Expand Down
2 changes: 1 addition & 1 deletion examples/terraform/aws/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ terraform apply --auto-approve

Click on the link below to access the UI:

Result exemple:
Result example:

```bash
Apply complete! Resources: 14 added, 0 changed, 0 destroyed.
Expand Down
2 changes: 1 addition & 1 deletion locust/runners.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ def on_request_failure(request_type, name, response_time, response_length, excep
self.stats.log_request(request_type, name, response_time, response_length)
self.stats.log_error(request_type, name, exception)

# temporarily set log level to ignore warnings to suppress deprication message
# temporarily set log level to ignore warnings to suppress deprecation message
loglevel = logging.getLogger().level
logging.getLogger().setLevel(logging.ERROR)
self.environment.events.request_success.add_listener(on_request_success)
Expand Down

0 comments on commit 08aa8ae

Please sign in to comment.