fixes after backporting

This commit is contained in:
Dmitriy Ryajov 2020-05-14 16:16:58 -06:00
parent bfe84816ac
commit 8963c2d0ed
1 changed files with 2 additions and 3 deletions

View File

@ -276,12 +276,11 @@ suite "Mplex":
let mplexDial = newMplex(conn)
let stream = await mplexDial.newStream(lazy = true)
let mplexDialFut = mplexDial.handle()
let openState = cast[LPChannel](stream).isOpen
check not LPChannel(stream.stream).isOpen # assert lazy
await stream.writeLp("HELLO")
check LPChannel(stream.stream).isOpen # assert lazy
await stream.close()
check not openState # assert lazy
await done.wait(1.seconds)
await conn.close()
await mplexDialFut