fix tests

This commit is contained in:
Alex Stokes
2019-10-28 20:38:43 +09:00
parent 0ca3e83540
commit 3deccac2da
2 changed files with 4 additions and 3 deletions

View File

@ -7,8 +7,8 @@ from libp2p.host.defaults import get_default_protocols
def test_default_protocols():
key_pair = create_new_key_pair()
swarm = initialize_default_swarm(key_pair)
host = BasicHost(swarm)
host = BasicHost(key_pair.public_key, swarm)
mux = host.get_mux()
handlers = mux.handlers
assert handlers == get_default_protocols()
assert handlers == get_default_protocols(host)