mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-10 07:18:27 +01:00
tests: checkout: sleep(1) to emulate realistic behavior
Signed-off-by: Ruslan Kuprieiev <[email protected]>
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user