From 8963c2d0ed32129cbde6c40e9b747889217f3d28 Mon Sep 17 00:00:00 2001 From: Dmitriy Ryajov Date: Thu, 14 May 2020 16:16:58 -0600 Subject: [PATCH] fixes after backporting --- tests/testmplex.nim | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/testmplex.nim b/tests/testmplex.nim index 138084ea3..f01c0a591 100644 --- a/tests/testmplex.nim +++ b/tests/testmplex.nim @@ -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