mirror of
https://github.com/docker-mailserver/docker-mailserver.git
synced 2026-04-01 03:32:36 +02:00
tests: update tests associated with PERMIT_DOCKER
We apply the same workaround here for `nc`... Signed-off-by: Georg Lauterbach <44545919+georglauterbach@users.noreply.github.com>
This commit is contained in:
parent
026164e910
commit
0ed65ce110
@ -68,7 +68,7 @@ teardown_file() {
|
||||
_reload_postfix mail_smtponly_second_network
|
||||
|
||||
# we should be able to send from the other container on the second network!
|
||||
run docker exec mail_smtponly_second_network_sender /bin/sh -c "nc mail_smtponly_second_network 25 < /tmp/docker-mailserver-test/emails/nc_raw/smtp-only.txt"
|
||||
run docker exec mail_smtponly_second_network_sender /bin/sh -c "while read -r LINE; do sleep 0.5s; echo \"\${LINE}\"; done < /tmp/docker-mailserver-test/emails/nc_raw/smtp-only.txt | nc mail_smtponly_second_network 25"
|
||||
assert_output --partial "250 2.0.0 Ok: queued as "
|
||||
repeat_in_container_until_success_or_timeout 60 mail_smtponly_second_network /bin/sh -c 'grep -cE "to=<user2\@external.tld>.*status\=sent" /var/log/mail/mail.log'
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user