Skip to content

Commit 1b697fc

Browse files
Fix tests failing in GitHub Actions
Test `test_run_duplicate_streams_timeout` fails sometimes, and after some investigations it is found that the process used in the test exits before considered for a Timeout. To fix the test, the command is now replaced with another command. Signed-off-by: Pradyumna Krishna <[email protected]>
1 parent 98a5e49 commit 1b697fc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_process.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,8 @@ def test_run_cmd_arg_return_code(self):
118118
def test_run_duplicate_streams_timeout(self):
119119
"""Test raise TimeoutExpired. """
120120
with self.assertRaises(securesystemslib.process.subprocess.TimeoutExpired):
121-
securesystemslib.process.run_duplicate_streams(sys.executable + " --version",
122-
timeout=-1)
121+
securesystemslib.process.run_duplicate_streams(sys.executable +
122+
" -c \"while True: pass\"", timeout=-1)
123123

124124

125125
def test__default_timeout(self):

0 commit comments

Comments
 (0)