File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change 1
1
import contextlib
2
2
import math
3
3
import os
4
+ import time
4
5
import zipfile
5
6
from datetime import datetime
6
7
from io import BytesIO
@@ -1073,6 +1074,7 @@ def test_file_versions(nc_any, dest_path):
1073
1074
assert version_str .find ("File version" ) != - 1
1074
1075
assert version_str .find ("bytes size" ) != - 1
1075
1076
nc_any .files .restore_version (versions [0 ])
1077
+ time .sleep (0.5 )
1076
1078
assert nc_any .files .download (new_file ) == b"22"
1077
1079
1078
1080
@@ -1096,6 +1098,7 @@ async def test_file_versions_async(anc_any, dest_path):
1096
1098
assert version_str .find ("File version" ) != - 1
1097
1099
assert version_str .find ("bytes size" ) != - 1
1098
1100
await anc_any .files .restore_version (versions [0 ])
1101
+ time .sleep (0.5 )
1099
1102
assert await anc_any .files .download (new_file ) == b"22"
1100
1103
1101
1104
You can’t perform that action at this time.
0 commit comments