Merge pull request #48890 from Ch3LL/cmd_test

add sleep in test_cmd integration test
This commit is contained in:
Nicole Thomas 2018-08-02 15:15:07 -04:00 committed by GitHub
commit f8bfab4f9f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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)