Skip to content

Commit 2bec929

Browse files
author
Lukas Pühringer
authored
Merge pull request #420 from PradyumnaKrishna/fix_process_timeout
Fix tests failing in GitHub Actions
2 parents 98a5e49 + 1b697fc commit 2bec929

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)