diff --git a/roles/mail_server/molecule/default/tests/test_optional.py b/roles/mail_server/molecule/default/tests/test_optional.py index 96819d675d50d11a663bc6f9c38a0e4af267a765..fdffd059a8ec7d36961d9f4a20f11cb49f1a918b 100644 --- a/roles/mail_server/molecule/default/tests/test_optional.py +++ b/roles/mail_server/molecule/default/tests/test_optional.py @@ -1,5 +1,6 @@ import os import re +import time import uuid import testinfra.utils.ansible_runner @@ -117,6 +118,7 @@ def test_local_aliases(host): message_id = str(uuid.uuid4()) send = host.run('swaks --header %s --suppress-data --to root@localhost', "Message-Id: <%s>" % message_id) + time.sleep(1) assert send.rc == 0 with host.sudo():