]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test: attempt to fix resolved wait-online testcase
authorLennart Poettering <lennart@poettering.net>
Wed, 14 May 2025 12:24:02 +0000 (14:24 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 14 May 2025 14:09:32 +0000 (16:09 +0200)
Fixes: #37430
test/units/TEST-75-RESOLVED.sh

index 104747e8d13d992fa0cd705165339094a1e4a485..be3a90385dc553401f22a71f1f5de9a3fe4083a0 100755 (executable)
@@ -1293,6 +1293,7 @@ testcase_15_wait_online_dns() {
 
     # Wait for the monitor to exit gracefully.
     timeout 10 bash -c "while systemctl --quiet is-active $unit; do sleep 0.5; done"
+    journalctl --sync
 
     # Check that a disconnect happened, and was handled.
     journalctl -b -u "$unit" --grep="DNS configuration monitor disconnected, reconnecting..." > /dev/null