naccyde / rpms / systemd

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