Fix daemon test close api.

This commit is contained in:
cheatfate 2018-11-19 22:53:20 +02:00
parent f49d67bc0d
commit 152a93e25b
1 changed files with 3 additions and 1 deletions

View File

@ -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
waitFor(connectStreamTest()) == true