From 3551004449471c0f9dd9c40fff9c962b8582cacf Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Fri, 13 Dec 2019 09:15:07 +0300 Subject: stress_test.py: check all outputs equal --- test/stress_test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test') 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)): -- cgit v1.2.3