civodul pushed a commit to branch main in repository shepherd. commit 8ab1c877dd3043d9694fb08b18c2160791e5bd26 Author: Ludovic Courtès <l...@gnu.org> AuthorDate: Sun Mar 9 16:53:13 2025 +0100
tests: Relax timeout in ‘forking-service.sh’. This should help better cope with slow, loaded, or emulated machines. * tests/forking-service.sh: Relax timeout in ‘within_seconds’ uses. --- tests/forking-service.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/forking-service.sh b/tests/forking-service.sh index 4c2f5ee..ca0fa1a 100644 --- a/tests/forking-service.sh +++ b/tests/forking-service.sh @@ -1,5 +1,5 @@ # GNU Shepherd --- Test detecting a forked process' termination -# Copyright © 2016, 2020, 2022-2024 Ludovic Courtès <l...@gnu.org> +# Copyright © 2016, 2020, 2022-2025 Ludovic Courtès <l...@gnu.org> # Copyright © 2018 Carlo Zancanaro <ca...@zancanaro.id.au> # # This file is part of the GNU Shepherd. @@ -131,8 +131,8 @@ service_pid_value="`cat $service_pid`" # now kill it kill "$service_pid_value" while kill -0 "$service_pid_value"; do sleep 0.3; done -# shepherd should notice that the service has stopped within one second -within_seconds 3 "$herd status test | grep stopped" +# shepherd should notice that the service has stopped within seconds +within_seconds 10 "$herd status test | grep stopped" @@ -146,7 +146,7 @@ rm -f "$service2_pid" kill $service2_pid_value while kill -0 "$service2_pid_value"; do sleep 0.3; done # shepherd should notice that the service has stopped, and restart it, within seconds -within_seconds 5 "$herd status test2 | grep 'Last respawned'" +within_seconds 10 "$herd status test2 | grep 'Last respawned'" test "`cat $PWD/$service2_started`" = "started started"