Skip to content

Commit b8889cd

Browse files
committed
nix: postgrest-run uses similar config to tests
Otherwise manual tests can be deceiving
1 parent a852b76 commit b8889cd

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

nix/tools/cabalTools.nix

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,17 @@ let
4141
args =
4242
[
4343
"ARG_USE_ENV([PGRST_DB_ANON_ROLE], [postgrest_test_anonymous], [PostgREST anonymous role])"
44+
"ARG_USE_ENV([PGRST_DB_POOL], [1], [PostgREST pool size])"
45+
"ARG_USE_ENV([PGRST_DB_POOL_ACQUISITION_TIMEOUT], [1], [PostgREST pool size])"
4446
"ARG_LEFTOVERS([PostgREST arguments])"
4547
];
4648
inRootDir = true;
4749
withEnv = postgrest.env;
4850
}
4951
''
5052
export PGRST_DB_ANON_ROLE
53+
export PGRST_DB_POOL
54+
export PGRST_DB_POOL_ACQUISITION_TIMEOUT
5155
5256
exec ${cabal-install}/bin/cabal v2-run ${devCabalOptions} --verbose=0 -- \
5357
postgrest "''${_arg_leftovers[@]}"

0 commit comments

Comments
 (0)