Add utility functions for libp2p bindings

To prepare for pubsub interop test
This commit is contained in:
mhchia
2019-08-31 00:18:22 +08:00
parent db858e467c
commit 1b5d064a8d
10 changed files with 177 additions and 64 deletions

View File

@ -0,0 +1,11 @@
import pytest
from .daemon import make_p2pd
@pytest.mark.parametrize("num_hosts", (1,))
@pytest.mark.asyncio
async def test_pubsub_init(
hosts, proc_factory, is_host_secure, unused_tcp_port_factory
):
p2pd = await make_p2pd(proc_factory, unused_tcp_port_factory, is_host_secure)