mirror of
https://github.com/home-assistant/operating-system.git
synced 2025-07-15 17:16:29 +00:00
Fix flaky timeout after boot slot switching test (#4113)
Add timeout to expect call when waiting for the OS reboot after switching slots. While it never fails for me locally, it regularly breaks tests in GHA.
This commit is contained in:
parent
f5efac66a0
commit
98a7a55df6
@ -3,7 +3,6 @@ import logging
|
||||
from time import sleep
|
||||
|
||||
import pytest
|
||||
from labgrid.driver import ExecutionError
|
||||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
|
||||
@ -86,7 +85,7 @@ def test_boot_other_slot(shell, shell_json, target):
|
||||
|
||||
shell.run_check(f"ha os boot-slot other --no-progress || true")
|
||||
|
||||
shell.console.expect("Booting `Slot ")
|
||||
shell.console.expect("Booting `Slot ", timeout=60)
|
||||
|
||||
# reactivate ShellDriver to handle login again
|
||||
target.deactivate(shell)
|
||||
|
Loading…
x
Reference in New Issue
Block a user