From 3d57fbb1b8a76ea69152947a0438e4797d18b418 Mon Sep 17 00:00:00 2001 From: shortcutme Date: Wed, 4 Oct 2017 13:33:26 +0200 Subject: [PATCH] Use the real size of content.json instead of predefine it --- src/Test/TestFileRequest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Test/TestFileRequest.py b/src/Test/TestFileRequest.py index 45d44b5a..4daf842e 100644 --- a/src/Test/TestFileRequest.py +++ b/src/Test/TestFileRequest.py @@ -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