]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test: add one missing assertion
authorFrantisek Sumsal <frantisek@sumsal.cz>
Thu, 9 Nov 2023 10:45:35 +0000 (11:45 +0100)
committerLuca Boccassi <luca.boccassi@gmail.com>
Thu, 9 Nov 2023 12:13:33 +0000 (12:13 +0000)
This also makes sure the first signal doesn't "spill" over into the
second check.

test/units/testsuite-45.sh

index 9d30d6cd8b9ac6004d9647ac836e7b1643d816aa..dc50da7a387c38c34f2baf7cfc92f31b6e7062c6 100755 (executable)
@@ -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