tests: migrate to wait_for_open_unix_socket helper
This commit is contained in:
+2
-7
@@ -99,13 +99,8 @@ in
|
||||
domain.wait_for_unit("multi-user.target")
|
||||
domain.wait_for_unit("dovecot.service")
|
||||
|
||||
# TODO put this blocking into the systemd units?
|
||||
domain1.wait_until_succeeds(
|
||||
"set +e; timeout 1 nc -U /run/rspamd/rspamd-milter.sock < /dev/null; [ $? -eq 124 ]"
|
||||
)
|
||||
domain2.wait_until_succeeds(
|
||||
"set +e; timeout 1 nc -U /run/rspamd/rspamd-milter.sock < /dev/null; [ $? -eq 124 ]"
|
||||
)
|
||||
for host in [domain1, domain2]:
|
||||
host.wait_for_open_unix_socket("/run/rspamd/rspamd-milter.sock")
|
||||
|
||||
# user@domain1.com sends a mail to user@domain2.com via explicit TLS
|
||||
client.succeed(
|
||||
|
||||
Reference in New Issue
Block a user