Skip to content

Commit eeef6fe

Browse files
committed
Rev4102, Fix fileGet test
1 parent c059164 commit eeef6fe

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/Config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class Config(object):
1313

1414
def __init__(self, argv):
1515
self.version = "0.7.0"
16-
self.rev = 4101
16+
self.rev = 4102
1717
self.argv = argv
1818
self.action = None
1919
self.pending_changes = {}

src/File/FileRequest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ def handleGetFile(self, params, streaming=False):
278278
return False
279279
except Exception as err:
280280
self.log.error("GetFile exception: %s" % Debug.formatException(err))
281-
self.response({"error": "File read Exception"})
281+
self.response({"error": "File read exception"})
282282
return False
283283

284284
def actionGetFile(self, params):

src/Test/TestFileRequest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def testGetFile(self, file_server, site):
3535

3636
# Stream from parent dir
3737
response = connection.request("getFile", {"site": site.address, "inner_path": "../users.json", "location": 0})
38-
assert "File read error" in response["error"]
38+
assert "File read exception" in response["error"]
3939

4040
# Invalid site
4141
response = connection.request("getFile", {"site": "", "inner_path": "users.json", "location": 0})
@@ -77,7 +77,7 @@ def testStreamFile(self, file_server, site):
7777
# Stream from parent dir
7878
buff = io.BytesIO()
7979
response = connection.request("streamFile", {"site": site.address, "inner_path": "../users.json", "location": 0}, buff)
80-
assert "File read error" in response["error"]
80+
assert "File read exception" in response["error"]
8181

8282
connection.close()
8383
client.stop()

0 commit comments

Comments
 (0)