python: use loopback addresses in bootstrap test

This commit is contained in:
Adrien Beraud committed 2026-10-26 00:51:27 -04:00
1 parent cf58d66282
commit bbbd9122af
1 file changed
+3 -5
+3 -5
View File
@@ -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")