container-deferred-start: assert the control unit's end state instead of reset-failed
This commit is contained in:
parent
ba0f9c6264
commit
19640f3bf8
1 changed files with 5 additions and 1 deletions
|
|
@ -93,7 +93,11 @@ pkgs.testers.runNixOSTest {
|
||||||
host.fail("systemctl start container@old.service")
|
host.fail("systemctl start container@old.service")
|
||||||
out = host.succeed("journalctl -u container@old.service --no-pager -o cat")
|
out = host.succeed("journalctl -u container@old.service --no-pager -o cat")
|
||||||
assert "start operation timed out" in out, out
|
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"):
|
with subtest("a daemon named in startAfterReady: the container's start ends inside the limit"):
|
||||||
host.succeed("systemctl start container@new.service")
|
host.succeed("systemctl start container@new.service")
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue