mirror of
https://github.com/savoirfairelinux/opendht.git
synced 2026-11-08 04:21:51 +00:00
python: use loopback addresses in bootstrap test
This commit is contained in:
1 parent
cf58d66282
commit
bbbd9122af
1 file changed
+3
-5
@@ -335,11 +335,9 @@ class OpenDhtTester(unittest.TestCase):
|
||||
|
||||
# test that bootstraping works (raw address)
|
||||
def test_bootstrap(self):
|
||||
a = dht.DhtRunner()
|
||||
a.run()
|
||||
b = dht.DhtRunner()
|
||||
b.run()
|
||||
self.assertTrue(b.ping(a.getBound()))
|
||||
bootstrap_node = self._run_node(ipv4="127.0.0.1")
|
||||
client_node = self._run_node(ipv4="127.0.0.1")
|
||||
self.assertTrue(client_node.ping(bootstrap_node.getBound(socket.AF_INET)))
|
||||
|
||||
def test_crypto(self):
|
||||
i = dht.Identity.generate("id")
|
||||
|
||||
Reference in new issue
Block a user