Skip to content

Commit e536398

Browse files
committed
first_stage_test: test_timeout_error: Use smaller timeout
Signed-off-by: Marc Hartmayer <[email protected]>
1 parent c7ae1e9 commit e536398

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

tests/first_stage_test.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,14 +237,18 @@ def test_timeout_error(self):
237237
6. Python runs `''` (a valid script) and exits with success
238238
"""
239239

240+
# We do not want to wait the default of 10s, change it to 0.1s
241+
self.conn._first_stage_select_timeout = 0.1
242+
args = self.conn.get_boot_command()
243+
240244
proc = testlib.subprocess.Popen(
241-
args=self.args,
245+
args=args,
242246
stdout=testlib.subprocess.PIPE,
243247
stderr=testlib.subprocess.PIPE,
244248
close_fds=True,
245249
)
246250
try:
247-
returncode = proc.wait(timeout=12)
251+
returncode = proc.wait(timeout=3)
248252
except testlib.subprocess.TimeoutExpired:
249253
proc.kill()
250254
self.fail("Timeout situation was not recognized")

0 commit comments

Comments
 (0)