mirror of
https://github.com/varun-r-mallya/py-libp2p.git
synced 2025-12-31 20:36:24 +00:00
fix tests
This commit is contained in:
@ -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)
|
||||
|
||||
Reference in New Issue
Block a user