From 535f0353dfb29cf254b443d11799cfc4e0221f4f Mon Sep 17 00:00:00 2001 From: Manuel Sabban Date: Fri, 23 Jul 2021 13:44:30 +0200 Subject: [PATCH] should fix the unit tests (#858) Co-authored-by: sabban <15465465+sabban@users.noreply.github.com> --- scripts/func_tests/tests_post-install_0base.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/func_tests/tests_post-install_0base.sh b/scripts/func_tests/tests_post-install_0base.sh index 523827f00..f7330b013 100755 --- a/scripts/func_tests/tests_post-install_0base.sh +++ b/scripts/func_tests/tests_post-install_0base.sh @@ -21,12 +21,14 @@ pidof crowdsec && fail "crowdsec process shouldn't be running" #start it again ${SYSTEMCTL} start crowdsec || fail "failed to stop service" -${SYSTEMCTL} status crowdsec || fail "crowdsec should be down" +${SYSTEMCTL} status crowdsec || fail "crowdsec should be up" +sleep 5s pidof crowdsec || fail "crowdsec process should be running" #restart it ${SYSTEMCTL} restart crowdsec || fail "failed to stop service" -${SYSTEMCTL} status crowdsec || fail "crowdsec should be down" +${SYSTEMCTL} status crowdsec || fail "crowdsec should be up" +sleep 5s pidof crowdsec || fail "crowdsec process should be running" ## version