Skip to content

Commit b927bd1

Browse files
authored
Merge pull request #3326 from amadeuppereira/stabilize-tests
Stabilize tests
2 parents e9cd29d + 48ecc28 commit b927bd1

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

locust/test/test_main.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -791,6 +791,7 @@ def t(self):
791791
with mock_locustfile(content=LOCUSTFILE_CONTENT) as mocked:
792792
with TestProcess(f"locust -f {mocked.file_path} --headless -u 3") as tp:
793793
tp.expect("Total fixed_count of User classes (4) is greater than ")
794+
tp.expect("Ramping to 3 users at a rate of 1.00 per second")
794795
tp.expect("Aggregated")
795796

796797
def test_with_package_as_locustfile(self):
@@ -1087,9 +1088,9 @@ def hello_world(self):
10871088
)
10881089
with mock_locustfile(content=LOCUSTFILE_CONTENT) as mocked:
10891090
proc = TestProcess(
1090-
f"locust -f {mocked.file_path} --host http://google.com --headless -u 5 -r 5 -t 1 --json",
1091+
f"locust -f {mocked.file_path} --host http://google.com --headless -u 5 -r 5 -t 2 --json",
10911092
sigint_on_exit=False,
1092-
join_timeout=2,
1093+
join_timeout=4,
10931094
)
10941095
proc.close()
10951096
stdout = "\n".join(proc.stdout_output)

0 commit comments

Comments
 (0)