Skip to content

Commit

Permalink
dont use a subshell in tests cases if you intend to signal it...
Browse files Browse the repository at this point in the history
  • Loading branch information
cyberw committed Nov 18, 2023
1 parent aa170aa commit d16ae25
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions locust/test/test_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -1837,8 +1837,16 @@ def test_processes_ctrl_c(self):

with mock_locustfile() as mocked:
proc = subprocess.Popen(
f"locust -f {mocked.file_path} --processes 4 --headless -L DEBUG",
shell=True,
[
"locust",
"-f",
mocked.file_path,
"--processes",
"4",
"--headless",
"-L",
"DEBUG",
],
stdout=PIPE,
stderr=PIPE,
text=True,
Expand Down

0 comments on commit d16ae25

Please sign in to comment.