should fix the unit tests (#858)

Co-authored-by: sabban <15465465+sabban@users.noreply.github.com>
This commit is contained in:
Manuel Sabban 2021-07-23 13:44:30 +02:00 committed by GitHub
parent 657b765021
commit 535f0353df
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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