ac3a84
From 058fab8aaad9fc6ececc647e369bf447a8327a4a Mon Sep 17 00:00:00 2001
ac3a84
From: Yu Watanabe <watanabe.yu+github@gmail.com>
ac3a84
Date: Thu, 15 Dec 2022 16:28:52 +0900
ac3a84
Subject: [PATCH] Revert "test: wait for the monitoring service to become
ac3a84
 active"
ac3a84
ac3a84
This reverts commit 5dd34c2604567320707625bc009cf01c3769605f.
ac3a84
ac3a84
`resolvectl monitor` sends notify event, and systemd-run wait for the
ac3a84
service being in active state. Hence, the loop is not necessary.
ac3a84
ac3a84
(cherry picked from commit 133708b8790ab79e35ade63506c16e4d1e79a025)
ac3a84
ac3a84
Related: #2138081
ac3a84
---
ac3a84
 test/units/testsuite-75.sh | 5 -----
ac3a84
 1 file changed, 5 deletions(-)
ac3a84
ac3a84
diff --git a/test/units/testsuite-75.sh b/test/units/testsuite-75.sh
ac3a84
index d0c7133412..844dbaebcc 100755
ac3a84
--- a/test/units/testsuite-75.sh
ac3a84
+++ b/test/units/testsuite-75.sh
ac3a84
@@ -212,11 +212,6 @@ resolvectl log-level debug
ac3a84
 
ac3a84
 # Start monitoring queries
ac3a84
 systemd-run -u resmontest.service -p Type=notify resolvectl monitor
ac3a84
-# Wait for the monitoring service to become active
ac3a84
-for _ in {0..9}; do
ac3a84
-    [[ "$(systemctl show -P ActiveState resmontest.service)" == "active" ]] && break
ac3a84
-    sleep .5
ac3a84
-done
ac3a84
 
ac3a84
 # We need to manually propagate the DS records of onlinesign.test. to the parent
ac3a84
 # zone, since they're generated online