Skip to content

Commit

Permalink
test_warning_with_lower_user_count_than_fixed_count: dont use shell=True
Browse files Browse the repository at this point in the history
  • Loading branch information
Lars Holmberg committed Aug 1, 2024
1 parent 6cfefdf commit 5dbf27f
Showing 1 changed file with 10 additions and 13 deletions.
23 changes: 10 additions & 13 deletions locust/test/test_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -1047,21 +1047,18 @@ def t(self):
)
with mock_locustfile(content=LOCUSTFILE_CONTENT) as mocked:
proc = subprocess.Popen(
" ".join(
[
"locust",
"-f",
mocked.file_path,
"--headless",
"--run-time",
"1s",
"-u",
"3",
]
),
[
"locust",
"-f",
mocked.file_path,
"--headless",
"--run-time",
"1s",
"-u",
"3",
],
stderr=STDOUT,
stdout=PIPE,
shell=True,
text=True,
)

Expand Down

0 comments on commit 5dbf27f

Please sign in to comment.