Skip to content

Commit

Permalink
Use merged getFile function call to download file using streaming
Browse files Browse the repository at this point in the history
  • Loading branch information
shortcutme committed Oct 4, 2017
1 parent c82b196 commit b1bfe39
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Test/TestPeer.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def testDownloadFile(self, file_server, site, site_temp):
peer_file_server = site_temp.addPeer("127.0.0.1", 1544)

# Testing streamFile
buff = peer_file_server.streamFile(site_temp.address, "content.json")
buff = peer_file_server.getFile(site_temp.address, "content.json", streaming=True)
assert "sign" in buff.getvalue()

# Testing getFile
Expand Down Expand Up @@ -159,4 +159,4 @@ def testFindHash(self, file_server, site, site_temp):

res = peer_file_server.findHashIds([1234, 1235])
assert res[1234] == [('1.2.3.4', 1544), ('1.2.3.5', 1545), ("127.0.0.1", 1544)]
assert res[1235] == [('1.2.3.5', 1545), ('1.2.3.6', 1546)]
assert res[1235] == [('1.2.3.5', 1545), ('1.2.3.6', 1546)]

0 comments on commit b1bfe39

Please sign in to comment.