Skip to content

Commit

Permalink
removed unnecessary return code check
Browse files Browse the repository at this point in the history
  • Loading branch information
fletelli42 committed Sep 17, 2024
1 parent 49f6423 commit 24b2b1f
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions locust/test/test_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -1455,8 +1455,6 @@ def my_task(self):
for output in expected_outputs:
self.assertIn(output, combined_output, f"Expected output not found: {output}")

self.assertEqual(0, manager.proc.returncode, f"Process failed with return code {manager.proc.returncode}")

@unittest.skipIf(platform.system() == "Darwin", reason="Messy on macOS on GH")
@unittest.skipIf(os.name == "nt", reason="Signal handling on windows is hard")
def test_web_options(self):
Expand Down Expand Up @@ -1515,8 +1513,6 @@ def test_web_options(self):
for output in expected_outputs:
self.assertIn(output, combined_output, f"Expected output not found: {output}")

self.assertEqual(0, manager.proc.returncode, f"Process failed with return code {manager.proc.returncode}")

@unittest.skipIf(os.name == "nt", reason="termios doesnt exist on windows, and thus we cannot import pty")
def test_input(self):
import pty
Expand Down Expand Up @@ -1737,8 +1733,6 @@ def t(self):
for output in expected_outputs:
self.assertIn(output, combined_output, f"Expected output not found: {output}")

self.assertEqual(1, manager.proc.returncode, f"Process failed with return code {manager.proc.returncode}")

def test_with_package_as_locustfile(self):
expected_outputs = ["Starting Locust", "All users spawned:", '"UserSubclass": 1', "Shutting down (exit code 0)"]

Expand Down

0 comments on commit 24b2b1f

Please sign in to comment.