diff --git a/tests/testmplex.nim b/tests/testmplex.nim index f92f0c6..a876f33 100644 --- a/tests/testmplex.nim +++ b/tests/testmplex.nim @@ -178,6 +178,7 @@ suite "Mplex": await stream.writeLp("Hello from stream!") await lock or timeout check lock.finished + timeout.cancel() await conn.close() check not openState # assert lazy result = true @@ -217,6 +218,7 @@ suite "Mplex": await stream.writeLp(bigseq) await lock or timeout check timeout.finished # this test has to timeout! + lock.cancel(); await conn.close() result = true