Watch
0
0
Fork
You've already forked hyperhive
0

container-deferred-start: assert the control unit's end state instead of reset-failed

This commit is contained in:
atlas 2026-11-28 05:03:30 +01:00 • committed by mara
commit 19640f3bf8

View file

@ -93,7 +93,11 @@ pkgs.testers.runNixOSTest {
host.fail("systemctl start container@old.service")
out = host.succeed("journalctl -u container@old.service --no-pager -o cat")
assert "start operation timed out" in out, out
host.succeed("systemctl stop container@old.service; systemctl reset-failed container@old.service")
assert "Failed with result 'timeout'" in out, out
# The failed start leaves nothing to reset: stopping unloads the unit.
host.succeed("systemctl stop container@old.service")
state = host.execute("systemctl is-active container@old.service")[1].strip()
assert state == "inactive", state
with subtest("a daemon named in startAfterReady: the container's start ends inside the limit"):
host.succeed("systemctl start container@new.service")