From bfc4f5693e3bc177561606b8458d2acbc4b56891 Mon Sep 17 00:00:00 2001 From: Martin Schulze Date: Sat, 17 Aug 2019 21:23:48 +0200 Subject: [PATCH] Don't use run in repeat_until_success_or_timeout it overwrites the return code of its command --- test/mail_lmtp_ip.bats | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/mail_lmtp_ip.bats b/test/mail_lmtp_ip.bats index 8fb7399c..4ec82e03 100644 --- a/test/mail_lmtp_ip.bats +++ b/test/mail_lmtp_ip.bats @@ -45,7 +45,7 @@ teardown_file() { assert_success # polling needs to avoid wc -l's unconditionally successful return status - repeat_until_success_or_timeout 60 run docker exec mail_lmtp_ip /bin/sh -c "grep 'postfix/lmtp' /var/log/mail/mail.log | grep 'status=sent' | grep ' Saved)'" + repeat_until_success_or_timeout 60 docker exec mail_lmtp_ip /bin/sh -c "grep 'postfix/lmtp' /var/log/mail/mail.log | grep 'status=sent' | grep ' Saved)'" run docker exec mail_lmtp_ip /bin/sh -c "grep 'postfix/lmtp' /var/log/mail/mail.log | grep 'status=sent' | grep ' Saved)' | wc -l" assert_success assert_output 1