add sleep in test_cmd integration test

This commit is contained in:
Ch3LL 2018-08-02 13:36:33 -04:00
parent a84f5155a1
commit acda4ed9ab
No known key found for this signature in database
GPG key ID: 132B55A7C13EFA73

View file

@ -8,6 +8,7 @@ import errno
import os
import textwrap
import tempfile
import time
# Import Salt Testing libs
from tests.support.case import ModuleCase
@ -69,6 +70,7 @@ class CMDRunRedirectTest(ModuleCase, SaltReturnAssertsMixin):
super(CMDRunRedirectTest, self).setUp()
def tearDown(self):
time.sleep(1)
for path in (self.state_file, self.test_tmp_path, self.test_file):
try:
os.remove(path)