Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix some typos #2052

Merged
merged 1 commit into from
Mar 17, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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