tests: checkout: sleep(1) to emulate realistic behavior

Signed-off-by: Ruslan Kuprieiev <[email protected]>
This commit is contained in:
Ruslan Kuprieiev
2018-03-13 20:51:29 +02:00
parent 3e29e29c0b
commit 3ab62555bd
+3
View File
@@ -1,4 +1,5 @@
import os
import time
import stat
import shutil
import filecmp
@@ -30,6 +31,8 @@ class TestCheckoutCorruptedCacheFile(TestRepro):
def test(self):
cache = self.foo_stage.outs[0].cache
time.sleep(1)
os.chmod(cache, stat.S_IWRITE)
with open(cache, 'a') as fd:
fd.write('1')