Use the real size of content.json instead of predefine it
This commit is contained in:
parent
f0f9240fc8
commit
3d57fbb1b8
1 changed files with 1 additions and 1 deletions
|
@ -22,7 +22,7 @@ class TestFileRequest:
|
|||
response = connection.request("getFile", {"site": site.address, "inner_path": "content.json", "location": 0})
|
||||
assert "sign" in response["body"]
|
||||
|
||||
response = connection.request("getFile", {"site": site.address, "inner_path": "content.json", "location": 0, "file_size": 4460})
|
||||
response = connection.request("getFile", {"site": site.address, "inner_path": "content.json", "location": 0, "file_size": site.storage.getSize("content.json")})
|
||||
assert "sign" in response["body"]
|
||||
|
||||
# Invalid file
|
||||
|
|
Loading…
Reference in a new issue