test: extend start limit interval

As the modified service requires about ~10 seconds for stopping, the
service never hit the start limit even if we tried to restart the
service more than 5 times.

This also checks that the service is actually triggered by dbus method
call.

Follow-up for 8eefd0f4de.
This commit is contained in:
Yu Watanabe
2025-10-25 15:34:44 +09:00
parent f59f4ac2a7
commit 44b4caad6c

View File

@@ -19,7 +19,7 @@ mkdir -p /run/systemd/system/systemd-resolved.service.d/
cat >/run/systemd/system/systemd-resolved.service.d/99-start-limit.conf <<EOF
[Unit]
StartLimitBurst=5
StartLimitInterval=30
StartLimitInterval=100
[Service]
ExecStopPost=sleep 10
@@ -39,4 +39,5 @@ for i in {1..5}; do
journalctl -o short-monotonic --no-hostname --no-pager -u systemd-resolved.service -n 15
exit 1
fi
systemctl is-active systemd-resolved.service
done