Fix daemon test close api.
This commit is contained in:
parent
f49d67bc0d
commit
152a93e25b
|
@ -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:
|
||||||
|
@ -40,4 +42,4 @@ when isMainModule:
|
||||||
waitFor(identitySpawnTest()) == true
|
waitFor(identitySpawnTest()) == true
|
||||||
test "Connect/Accept peer/stream test":
|
test "Connect/Accept peer/stream test":
|
||||||
check:
|
check:
|
||||||
waitFor(connectStreamTest()) == true
|
waitFor(connectStreamTest()) == true
|
||||||
|
|
Loading…
Reference in New Issue