Changeset - 5ea45eee5187
[Not reviewed]
0 1 0
Branko Majic (branko) - 7 years ago 2017-08-21 13:09:04
branko@majic.rs
MAR-124: Updated mail_forwarder test_tls_enforced_towards_relay_mail_server to be a bit robust against race condition.
1 file changed with 3 insertions and 0 deletions:
0 comments (0 inline, 0 general)
roles/mail_forwarder/tests/test_optional.py
Show inline comments
 
@@ -114,6 +114,9 @@ def test_tls_enforced_towards_relay_mail_server(Command, File, Sudo):
 
        assert send.rc == 0
 
        message_id = re.search('Ok: queued as (.*)', send.stdout).group(1)
 

	
 
        # Wait for a little while for message to be processed.
 
        time.sleep(5)
 

	
 
        with Sudo():
 
            mail_log = File('/var/log/mail.log')
 
            pattern = "%s: to=<root@domain1>, relay=domain1.*status=deferred \(Server certificate not verified\)" % message_id
0 comments (0 inline, 0 general)