Manual stop true after a reboot (#3902)

* Manual stop true after a reboot

* Fix test
This commit is contained in:
Mike Degatano 2022-09-27 02:40:55 -04:00 committed by GitHub
parent d15a7c27ca
commit a1a9c55542
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -114,7 +114,7 @@ class Addon(AddonModel):
self.instance: DockerAddon = DockerAddon(coresys, self)
self._state: AddonState = AddonState.UNKNOWN
self._manual_stop: bool = (
self.sys_hardware.helper.last_boot == self.sys_config.last_boot
self.sys_hardware.helper.last_boot != self.sys_config.last_boot
)
self._listeners: list[EventListener] = []

View File

@ -223,7 +223,7 @@ async def test_listener_attached_on_install(coresys: CoreSys, repository):
@pytest.mark.parametrize(
"boot_timedelta,restart_count", [(timedelta(), 0), (timedelta(days=1), 1)]
"boot_timedelta,restart_count", [(timedelta(), 1), (timedelta(days=1), 0)]
)
async def test_watchdog_during_attach(
coresys: CoreSys,