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():