mirror of
https://github.com/status-im/nim-dagger.git
synced 2025-02-07 04:14:07 +00:00
* adding tracker for streamstore * adding tracker tests * Sets up tracker helper functions and closes streams in testnode.nim * Deploying checksuite for memory leak tracker checking. * Successfully deploys checksuite and asyncchecksuite. * Fix leak in testpor.nim * Fixes leaked storestream in testnetwork.nim * Fixes integration tests * Cleanup * cleanup comment by Mark --------- Co-authored-by: benbierens <thatbenbierens@gmail.com>
18 lines
490 B
Nim
18 lines
490 B
Nim
import pkg/chronos
|
|
import pkg/questionable
|
|
import pkg/questionable/results
|
|
|
|
import pkg/codex/sales/reservations
|
|
import ../helpers
|
|
|
|
export checktest
|
|
|
|
proc allAvailabilities*(r: Reservations): Future[seq[Availability]] {.async.} =
|
|
var ret: seq[Availability] = @[]
|
|
without availabilities =? (await r.availabilities), err:
|
|
raiseAssert "failed to get availabilities, error: " & err.msg
|
|
for a in availabilities:
|
|
if availability =? (await a):
|
|
ret.add availability
|
|
return ret
|