diff options
| author | Charles Cabergs <me@cacharle.xyz> | 2020-08-27 21:03:37 +0200 |
|---|---|---|
| committer | Charles Cabergs <me@cacharle.xyz> | 2020-08-27 21:03:37 +0200 |
| commit | cbc2c50efaf06f5b925bb87c445994e9db6e1719 (patch) | |
| tree | 5f421c6a6a004b4f1f7aaff0e88c6a54393d1f99 /test.py | |
| parent | aacf088db4d9d3e0b450247abe1d8f258d07d862 (diff) | |
| download | minishell_test-cbc2c50efaf06f5b925bb87c445994e9db6e1719.tar.gz minishell_test-cbc2c50efaf06f5b925bb87c445994e9db6e1719.tar.bz2 minishell_test-cbc2c50efaf06f5b925bb87c445994e9db6e1719.zip | |
Fixing timeout false positive
Diffstat (limited to 'test.py')
| -rw-r--r-- | test.py | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -6,7 +6,7 @@ # By: charles <charles.cabergs@gmail.com> +#+ +:+ +#+ # # +#+#+#+#+#+ +#+ # # Created: 2020/06/16 21:48:50 by charles #+# #+# # -# Updated: 2020/08/19 16:09:55 by charles ### ########.fr # +# Updated: 2020/08/27 21:02:56 by charles ### ########.fr # # # # ############################################################################ # @@ -34,8 +34,8 @@ class Captured: self.is_timeout = is_timeout def __eq__(self, other: 'Result') -> bool: - if self.is_timeout and other.is_timeout: - return True + if self.is_timeout: + return self.is_timeout == other.is_timeout return (self.output == other.output and self.status == other.status and all([x == y for x, y in zip(self.files_content, other.files_content)])) |
