aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2019-12-13 09:15:07 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2019-12-13 09:15:07 +0300
commit3551004449471c0f9dd9c40fff9c962b8582cacf (patch)
treeb55b33fa524b964e5cbf572da0f328388f014757
parentclient: skip \r (diff)
downloadmath-server-3551004449471c0f9dd9c40fff9c962b8582cacf.tar.gz
math-server-3551004449471c0f9dd9c40fff9c962b8582cacf.zip
stress_test.py: check all outputs equal
-rw-r--r--test/stress_test.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/stress_test.py b/test/stress_test.py
index 749fdf3..233a0de 100644
--- a/test/stress_test.py
+++ b/test/stress_test.py
@@ -73,7 +73,7 @@ def run_stress_test(args):
with Pool(args.processes) as pool:
results = pool.starmap(run_client, [(i, client, stdin) for i in range(args.processes)])
assert results
- # It's assumed every invocation gives the same output, yikes.
+ assert all((results[0].stdout == other.stdout for other in results[1:]))
actual_output = list(map(float, results[0].stdout.split('\n')[:-1]))
assert len(expected_output) == len(actual_output)
for i in range(len(expected_output)):