From 0d0a6e9cfb1b7737b5c63d992a9a9ea2ced72130 Mon Sep 17 00:00:00 2001 From: Giovanni Petrantoni Date: Fri, 7 Feb 2020 15:56:18 +0900 Subject: [PATCH] No destructors on future so gotta cancel those manually --- tests/testmplex.nim | 2 ++ 1 file changed, 2 insertions(+) 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