mirror of
https://github.com/varun-r-mallya/py-libp2p.git
synced 2025-12-31 20:36:24 +00:00
Fix: Change the event.close to event.set
And add missing parts.
This commit is contained in:
@ -2,8 +2,8 @@ import multiaddr
|
||||
import pytest
|
||||
|
||||
from libp2p.peer.peerinfo import info_from_p2p_addr
|
||||
from tests.utils import cleanup, set_up_nodes_by_transport_opt
|
||||
from tests.constants import MAX_READ_LEN
|
||||
from tests.utils import cleanup, set_up_nodes_by_transport_opt
|
||||
|
||||
|
||||
@pytest.mark.asyncio
|
||||
|
||||
@ -16,8 +16,8 @@ from libp2p import initialize_default_swarm, new_node
|
||||
from libp2p.crypto.rsa import create_new_key_pair
|
||||
from libp2p.host.basic_host import BasicHost
|
||||
from libp2p.network.notifee_interface import INotifee
|
||||
from tests.utils import cleanup, perform_two_host_set_up
|
||||
from tests.constants import MAX_READ_LEN
|
||||
from tests.utils import cleanup, perform_two_host_set_up
|
||||
|
||||
ACK = "ack:"
|
||||
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
import pytest
|
||||
|
||||
from libp2p.protocol_muxer.exceptions import MultiselectClientError
|
||||
from tests.utils import cleanup, set_up_nodes_by_transport_opt, echo_stream_handler
|
||||
from tests.utils import cleanup, echo_stream_handler, set_up_nodes_by_transport_opt
|
||||
|
||||
# TODO: Add tests for multiple streams being opened on different
|
||||
# protocols through the same connection
|
||||
|
||||
@ -5,7 +5,6 @@ import multiaddr
|
||||
|
||||
from libp2p import new_node
|
||||
from libp2p.peer.peerinfo import info_from_p2p_addr
|
||||
|
||||
from tests.constants import MAX_READ_LEN
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user