From 152a93e25b971c59adb334f1353b2d144275d9b5 Mon Sep 17 00:00:00 2001 From: cheatfate Date: Mon, 19 Nov 2018 22:53:20 +0200 Subject: [PATCH] Fix daemon test close api. --- tests/testdaemon.nim | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/testdaemon.nim b/tests/testdaemon.nim index a1f5060..cd72f44 100644 --- a/tests/testdaemon.nim +++ b/tests/testdaemon.nim @@ -31,6 +31,8 @@ proc connectStreamTest(): Future[bool] {.async.} = doAssert(sent == len(test) + 2) var check = await wait(testFuture, 10000) doAssert(check == test) + await api1.close() + await api2.close() result = true when isMainModule: @@ -40,4 +42,4 @@ when isMainModule: waitFor(identitySpawnTest()) == true test "Connect/Accept peer/stream test": check: - waitFor(connectStreamTest()) == true \ No newline at end of file + waitFor(connectStreamTest()) == true