From 0a03c30e8a366ff6ea1eb076b5e97c7ed2757794 Mon Sep 17 00:00:00 2001 From: shortcutme Date: Thu, 24 Jan 2019 15:19:19 +0100 Subject: [PATCH] findHashId will return real address used by the connection --- src/Test/TestTor.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Test/TestTor.py b/src/Test/TestTor.py index d40fe0f9..bc72db9d 100644 --- a/src/Test/TestTor.py +++ b/src/Test/TestTor.py @@ -135,10 +135,9 @@ class TestTor: # Test my address adding site.content_manager.hashfield.append(1234) - my_onion_address = tor_manager.getOnion(site_temp.address) + ".onion" res = peer_file_server.findHashIds([1234, 1235]) - assert res[1234] == [('1.2.3.5', 1545), ("bka4ht2bzxchy44r.onion", 1544), (my_onion_address, 1544)] + assert res[1234] == [('1.2.3.5', 1545), ("bka4ht2bzxchy44r.onion", 1544), (file_server.ip, 1544)] assert res[1235] == [('1.2.3.6', 1546), ('1.2.3.5', 1545)] def testSiteOnion(self, tor_manager):