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 c7ae1e9 commit e536398Copy full SHA for e536398
tests/first_stage_test.py
@@ -237,14 +237,18 @@ def test_timeout_error(self):
237
6. Python runs `''` (a valid script) and exits with success
238
"""
239
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
+
244
proc = testlib.subprocess.Popen(
- args=self.args,
245
+ args=args,
246
stdout=testlib.subprocess.PIPE,
247
stderr=testlib.subprocess.PIPE,
248
close_fds=True,
249
)
250
try:
- returncode = proc.wait(timeout=12)
251
+ returncode = proc.wait(timeout=3)
252
except testlib.subprocess.TimeoutExpired:
253
proc.kill()
254
self.fail("Timeout situation was not recognized")
0 commit comments