Skip to content

Commit 267e160

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

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
@@ -241,14 +241,18 @@ def test_timeout_error(self):
241241
6. Python runs `''` (a valid script) and exits with success
242242
"""
243243

244+
# We do not want to wait the default of 10s, change it to 0.1s
245+
self.conn._first_stage_select_timeout = 0.1
246+
args = self.conn.get_boot_command()
247+
244248
proc = testlib.subprocess.Popen(
245-
args=self.args,
249+
args=args,
246250
stdout=testlib.subprocess.PIPE,
247251
stderr=testlib.subprocess.PIPE,
248252
close_fds=True,
249253
)
250254
try:
251-
returncode = proc.wait(timeout=12)
255+
returncode = proc.wait(timeout=3)
252256
except testlib.subprocess.TimeoutExpired:
253257
proc.kill()
254258
proc.wait(timeout=3)

0 commit comments

Comments
 (0)