tests: migrate to wait_for_open_unix_socket helper

This commit is contained in:
Martin Weinelt
2026-04-18 23:04:09 +02:00
parent e4017308b2
commit 25fae6f36e
5 changed files with 7 additions and 26 deletions
+1 -4
View File
@@ -131,10 +131,7 @@ in
machine.wait_for_unit("multi-user.target")
machine.wait_for_unit("dovecot.service")
# TODO put this blocking into the systemd units?
machine.wait_until_succeeds(
"set +e; timeout 1 nc -U /run/rspamd/rspamd-milter.sock < /dev/null; [ $? -eq 124 ]"
)
machine.wait_for_open_unix_socket("/run/rspamd/rspamd-milter.sock")
# Regression test for https://gitlab.com/simple-nixos-mailserver/nixos-mailserver/-/issues/205
with subtest("mail forwarded can are locally kept"):