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 <troglobit@gmail.com>
This commit is contained in:
Joachim Wiberg
2026-08-13 10:14:48 +02:00
parent 3499a5eb76
commit abab0e0fd4
+3 -1
View File
@@ -66,7 +66,9 @@ test_one()
run "initctl stop foo" run "initctl stop foo"
run "initctl status" run "initctl status"
run "initctl status bar" 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" run "initctl debug"