Skip to content

Commit 430cbe8

Browse files
committed
added "sleep" to test
1 parent ba4b712 commit 430cbe8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/actual_tests/files_test.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import contextlib
22
import math
33
import os
4+
import time
45
import zipfile
56
from datetime import datetime
67
from io import BytesIO
@@ -1073,6 +1074,7 @@ def test_file_versions(nc_any, dest_path):
10731074
assert version_str.find("File version") != -1
10741075
assert version_str.find("bytes size") != -1
10751076
nc_any.files.restore_version(versions[0])
1077+
time.sleep(0.5)
10761078
assert nc_any.files.download(new_file) == b"22"
10771079

10781080

@@ -1096,6 +1098,7 @@ async def test_file_versions_async(anc_any, dest_path):
10961098
assert version_str.find("File version") != -1
10971099
assert version_str.find("bytes size") != -1
10981100
await anc_any.files.restore_version(versions[0])
1101+
time.sleep(0.5)
10991102
assert await anc_any.files.download(new_file) == b"22"
11001103

11011104

0 commit comments

Comments
 (0)