From b1bfe39cd56ae4cf2eadec303f1ddb1ff5c71534 Mon Sep 17 00:00:00 2001 From: shortcutme Date: Wed, 4 Oct 2017 13:32:39 +0200 Subject: [PATCH] Use merged getFile function call to download file using streaming --- src/Test/TestPeer.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Test/TestPeer.py b/src/Test/TestPeer.py index f0d810339..cadc5eef6 100644 --- a/src/Test/TestPeer.py +++ b/src/Test/TestPeer.py @@ -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 @@ -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)] \ No newline at end of file + assert res[1235] == [('1.2.3.5', 1545), ('1.2.3.6', 1546)]