From 3519b2b0e8cb297936a074bbf632cbf8f849c1d3 Mon Sep 17 00:00:00 2001 From: alinmear Date: Mon, 9 Jan 2017 22:25:47 +0100 Subject: [PATCH] Fix Unit Test --- test/tests.bats | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/tests.bats b/test/tests.bats index e170b2e6..d6a98c4a 100644 --- a/test/tests.bats +++ b/test/tests.bats @@ -912,12 +912,12 @@ # Postfix VIRTUAL_TRANSPORT # @test "checking postfix-lmtp: virtual_transport config is set" { - run docker exec mail_lmtp_ip /bin/sh -c "grep 'virtual_transport = lmtp:mail.my-domain.com:24' /etc/postfix/main.cf" + run docker exec mail_lmtp_ip /bin/sh -c "grep 'virtual_transport = lmtp:127.0.0.1:24' /etc/postfix/main.cf" [ "$status" -eq 0 ] } @test "checking postfix-lmtp: delivers mail to existing account" { run docker exec mail_lmtp_ip /bin/sh -c "grep 'postfix/lmtp' /var/log/mail/mail.log | grep 'status=sent' | grep ' Saved)' | wc -l" [ "$status" -eq 0 ] - [ "$output" -eq 6 ] + [ "$output" -eq 1 ] }