Use merged getFile function call to download file using streaming
This commit is contained in:
parent
c82b19687a
commit
b1bfe39cd5
1 changed files with 2 additions and 2 deletions
|
@ -44,7 +44,7 @@ class TestPeer:
|
|||
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
|
||||
|
@ -159,4 +159,4 @@ class TestPeer:
|
|||
|
||||
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)]
|
||||
|
|
Loading…
Reference in a new issue