From 691f94c207ad4698b3081e7de8fe134a11c21b62 Mon Sep 17 00:00:00 2001 From: cuishuang Date: Thu, 17 Mar 2022 20:12:16 +0800 Subject: [PATCH] fix some typos Signed-off-by: cuishuang --- examples/custom_messages.py | 4 ++-- examples/custom_shape/double_wave.py | 2 +- examples/terraform/aws/README.md | 2 +- locust/runners.py | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/examples/custom_messages.py b/examples/custom_messages.py index 31dd13f990..df3c4b0723 100644 --- a/examples/custom_messages.py +++ b/examples/custom_messages.py @@ -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) diff --git a/examples/custom_shape/double_wave.py b/examples/custom_shape/double_wave.py index 21a966f177..37ce67e3a4 100644 --- a/examples/custom_shape/double_wave.py +++ b/examples/custom_shape/double_wave.py @@ -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 diff --git a/examples/terraform/aws/README.md b/examples/terraform/aws/README.md index b01d740d4c..41aaaf203e 100644 --- a/examples/terraform/aws/README.md +++ b/examples/terraform/aws/README.md @@ -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. diff --git a/locust/runners.py b/locust/runners.py index 3da5b22fb1..3a3d04eeaa 100644 --- a/locust/runners.py +++ b/locust/runners.py @@ -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)