mirror of
https://github.com/troglobit/finit.git
synced 2026-09-30 21:13:01 +07:00
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:
+3
-1
@@ -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"
|
||||||
|
|||||||
Reference in New Issue
Block a user