updating to proper multiaddr and changing to p2p

This commit is contained in:
Robert Zajac
2018-12-28 01:56:00 -05:00
parent f6c6ec2213
commit 4c0cd8730f
6 changed files with 10 additions and 10 deletions

View File

@ -149,6 +149,6 @@ async def test_host_connect():
assert len(node_a.get_peerstore().peers()) == 1
assert node_b.get_id() in node_a.get_peerstore().peers()
ma_node_b = multiaddr.Multiaddr('/ipfs/%s' % node_b.get_id().pretty())
ma_node_b = multiaddr.Multiaddr('/p2p/%s' % node_b.get_id().pretty())
for addr in node_a.get_peerstore().addrs(node_b.get_id()):
assert addr.encapsulate(ma_node_b) in node_b.get_addrs()