We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b40e195 commit 267e160Copy full SHA for 267e160
tests/first_stage_test.py
@@ -241,14 +241,18 @@ def test_timeout_error(self):
241
6. Python runs `''` (a valid script) and exits with success
242
"""
243
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
+
248
proc = testlib.subprocess.Popen(
- args=self.args,
249
+ args=args,
250
stdout=testlib.subprocess.PIPE,
251
stderr=testlib.subprocess.PIPE,
252
close_fds=True,
253
)
254
try:
- returncode = proc.wait(timeout=12)
255
+ returncode = proc.wait(timeout=3)
256
except testlib.subprocess.TimeoutExpired:
257
proc.kill()
258
proc.wait(timeout=3)
0 commit comments