forked from LBRYCommunity/lbry-sdk
update mock dht
This commit is contained in:
parent
4d0e9e0428
commit
40b9fa38b0
1 changed files with 1 additions and 0 deletions
|
@ -61,6 +61,7 @@ def mock_network_loop(loop: asyncio.BaseEventLoop):
|
|||
|
||||
protocol = proto_lam()
|
||||
transport = asyncio.DatagramTransport(extra={'socket': mock_sock})
|
||||
transport.is_closing = lambda: False
|
||||
transport.close = lambda: mock_sock.close()
|
||||
mock_sock.sendto = sendto
|
||||
transport.sendto = mock_sock.sendto
|
||||
|
|
Loading…
Reference in a new issue