diff --git a/locust/main.py b/locust/main.py index faba894282..6b1ea02cf2 100644 --- a/locust/main.py +++ b/locust/main.py @@ -304,7 +304,7 @@ def stop_and_optionally_quit(): else: logger.info("--autoquit not specified, leaving web ui running indefinitely") else: # --headless run - logger.info("--run-time limit reached. Stopping Locust") + logger.info("--run-time limit reached, shutting down") runner.quit() def spawn_run_time_quit_greenlet(): @@ -325,7 +325,7 @@ def start_automatic_run(): start_time = time.monotonic() while len(runner.clients.ready) < options.expect_workers: if options.expect_workers_max_wait and options.expect_workers_max_wait < time.monotonic() - start_time: - logger.error("Gave up waiting for workers to connect.") + logger.error("Gave up waiting for workers to connect") runner.quit() sys.exit(1) logging.info( diff --git a/locust/test/test_log.py b/locust/test/test_log.py index a4968e7326..b0a189baff 100644 --- a/locust/test/test_log.py +++ b/locust/test/test_log.py @@ -77,7 +77,7 @@ def my_task(self): output, ) self.assertIn( - f"{socket.gethostname()}/INFO/locust.main: --run-time limit reached. Stopping Locust", + f"{socket.gethostname()}/INFO/locust.main: --run-time limit reached. shutting down", output, ) self.assertIn( @@ -192,7 +192,7 @@ def my_task(self): log_content, ) self.assertIn( - f"{socket.gethostname()}/INFO/locust.main: --run-time limit reached. Stopping Locust", + f"{socket.gethostname()}/INFO/locust.main: --run-time limit reached, shutting down", log_content, ) self.assertIn(