From 9471ce73463c0ed6acbdb88c365565265ad0cd38 Mon Sep 17 00:00:00 2001 From: Martin Schulze Date: Mon, 19 Oct 2020 23:34:39 +0200 Subject: [PATCH] Fix errors due to trying to send emails too early when clamav has not fully come up yet --- test/tests.bats | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/tests.bats b/test/tests.bats index e1181873..2411634c 100644 --- a/test/tests.bats +++ b/test/tests.bats @@ -49,6 +49,9 @@ setup_file() { wait_for_smtp_port_in_container mail + # wait for clamav to be fully setup or we will get errors on the log + repeat_in_container_until_success_or_timeout 60 mail test -e /var/run/clamav/clamd.ctl + # sending test mails docker exec mail /bin/sh -c "nc 0.0.0.0 25 < /tmp/docker-mailserver-test/email-templates/amavis-spam.txt" docker exec mail /bin/sh -c "nc 0.0.0.0 25 < /tmp/docker-mailserver-test/email-templates/amavis-virus.txt"