Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
cyberw committed Mar 11, 2024
1 parent a5ae2a3 commit 2477887
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test_har2locust.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ def test_invalid_resource_types():
"inputs/login.har",
)
_stdout, stderr = proc.communicate()
assert proc.returncode == 1, f"Unexpected return code {proc.returncode}, stderr: {stderr}"
# it is just supposed to be a warning, so return code should still be ok
assert proc.returncode == 0, f"Unexpected return code {proc.returncode}, stderr: {stderr}"
assert "unsupported resource type" in stderr


Expand Down

0 comments on commit 2477887

Please sign in to comment.