mirror of https://github.com/vacp2p/nim-libp2p.git
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)
|
||||
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
|
||||
|
|
Loading…
Reference in New Issue