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) doAssert(sent == len(test) + 2)
var check = await wait(testFuture, 10000) var check = await wait(testFuture, 10000)
doAssert(check == test) doAssert(check == test)
await api1.close()
await api2.close()
result = true result = true
when isMainModule: when isMainModule: