22 lines
628 B
Nim
22 lines
628 B
Nim
|
{.used.}
|
||
|
|
||
|
import sequtils
|
||
|
import chronos, stew/byteutils
|
||
|
import ../libp2p/[stream/connection,
|
||
|
transports/transport,
|
||
|
transports/quictransport,
|
||
|
upgrademngrs/upgrade,
|
||
|
multiaddress,
|
||
|
errors,
|
||
|
wire]
|
||
|
|
||
|
import ./helpers, ./commontransport
|
||
|
|
||
|
suite "Quic transport":
|
||
|
asyncTest "can handle local address":
|
||
|
let ma = @[MultiAddress.init("/ip4/127.0.0.1/udp/45894/quic").tryGet()]
|
||
|
let transport1 = QuicTransport.new()
|
||
|
await transport1.start(ma)
|
||
|
check transport1.handles(transport1.addrs[0])
|
||
|
await transport1.stop()
|