fix restart test

This commit is contained in:
Valentin Boettcher 2020-08-02 18:21:35 +02:00
parent 2494c546b1
commit 6d152d6795

View file

@ -84,7 +84,8 @@
(testing "restarting the service"
(systemd/start-service! name)
(systemd/restart-service! name)
(while (= :activating (systemd/get-service-state! name))
(while (some #(= % (systemd/get-service-state! name))
[:activating :deactivating])
(a/<!! (a/timeout 1000)))
(is (= :active (systemd/get-service-state! name))))