]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
Revert "test: wait for the monitoring service to become active" 25756/head
authorYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 15 Dec 2022 07:28:52 +0000 (16:28 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 15 Dec 2022 12:50:13 +0000 (21:50 +0900)
This reverts commit 5dd34c2604567320707625bc009cf01c3769605f.

`resolvectl monitor` sends notify event, and systemd-run wait for the
service being in active state. Hence, the loop is not necessary.

test/units/testsuite-75.sh

index d0c71334125fc85cac7928bfa368dd2d4a36a0e6..844dbaebcc52d2448fac91fbfdee0a6d8836b536 100755 (executable)
@@ -212,11 +212,6 @@ resolvectl log-level debug
 
 # Start monitoring queries
 systemd-run -u resmontest.service -p Type=notify resolvectl monitor
-# Wait for the monitoring service to become active
-for _ in {0..9}; do
-    [[ "$(systemctl show -P ActiveState resmontest.service)" == "active" ]] && break
-    sleep .5
-done
 
 # We need to manually propagate the DS records of onlinesign.test. to the parent
 # zone, since they're generated online