nwaku/tests/common/test_postgresql_asyncpool.nim
Ivan Folgueira Bande cb2e3d86a6
feat(postgres): Adding a postgres async pool to make the db interactions asynchronous (#1779)
* feat(postgres): added postgres async pool wrapper

---------

Co-authored-by: Lorenzo Delgado <lorenzo@status.im>
2023-06-07 10:08:43 +02:00

17 lines
316 B
Nim

{.used.}
import
std/[strutils, os],
stew/results,
testutils/unittests,
chronos
import
../../waku/common/postgres/asyncpool,
../../waku/common/postgres/pg_asyncpool_opts
suite "Async pool":
asyncTest "Create connection pool":
## TODO: extend unit tests
var pgOpts = PgAsyncPoolOptions.init()