aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/stress_test.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/stress_test.py b/test/stress_test.py
index e7386fd..b339f36 100644
--- a/test/stress_test.py
+++ b/test/stress_test.py
@@ -35,7 +35,9 @@ def timer(description):
def run_client(i, client, stdin):
with timer(f"Invocation #{i}"):
cmd = client.get_command_line()
- return subprocess.run(cmd, text=True, input=stdin, capture_output=True)
+ result = subprocess.run(cmd, text=True, input=stdin, capture_output=True)
+ result.check_returncode()
+ return result
OPERATORS = '+', '-', '*', '/'
MIN_OPERATORS = 10