From abab0e0fd4f25d5ee6686e6b39177c4c3fabdf8e Mon Sep 17 00:00:00 2001 From: Joachim Wiberg Date: Fri, 7 Aug 2026 13:53:18 +0200 Subject: [PATCH] test: depserv waits for the transition to settle The last assertion sampled bar's state one step after asking Finit to stop foo, but bar passes through stopped on its way to waiting, so the test failed roughly one run in eight. Signed-off-by: Joachim Wiberg --- test/depserv.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/depserv.sh b/test/depserv.sh index 0d0eaa1d..396afae2 100755 --- a/test/depserv.sh +++ b/test/depserv.sh @@ -66,7 +66,9 @@ test_one() run "initctl stop foo" run "initctl status" run "initctl status bar" - assert_status "bar" "waiting" + # bar passes through stopped on its way to waiting, so this has to + # wait for the end of the transition rather than sample it once + retry 'assert_status "bar" "waiting"' } run "initctl debug"