From: Frantisek Sumsal Date: Thu, 9 Nov 2023 10:45:35 +0000 (+0100) Subject: test: add one missing assertion X-Git-Tag: v255-rc2~64 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a155ef7b65075ae98626937ce5b41f6491e3b09d;p=thirdparty%2Fsystemd.git test: add one missing assertion This also makes sure the first signal doesn't "spill" over into the second check. --- diff --git a/test/units/testsuite-45.sh b/test/units/testsuite-45.sh index 9d30d6cd8b9..dc50da7a387 100755 --- a/test/units/testsuite-45.sh +++ b/test/units/testsuite-45.sh @@ -267,7 +267,9 @@ EOF busctl monitor --json=short --match="type=signal,sender=org.freedesktop.timedate1,member=PropertiesChanged,path=/org/freedesktop/timedate1" : 'Disable NTP' + ts="$(date +"%F %T.%6N")" timedatectl set-ntp false + assert_timedated_signal "$ts" "false" assert_timesyncd_state "inactive" assert_ntp "false" assert_rc 3 systemctl is-active --quiet systemd-timesyncd