Fix memory tests timing out after c3ade07
This commit is contained in:
committed by
Wolfgang Walther
parent
d2791ea0e5
commit
fae1e168a7
@@ -1,13 +1,13 @@
|
||||
#! /usr/bin/env bash
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# This test script expects that a `postgrest` executable with profiling enabled
|
||||
# is on the PATH.
|
||||
|
||||
set -eu
|
||||
set -Eeuo pipefail
|
||||
|
||||
pgrPort=49421
|
||||
|
||||
# PGRST_DB_URI, PGRST_DB_ANON_ROLE and PGRST_DB_SCHEMAS are expected to be set by with_tmp_db
|
||||
export PGRST_DB_ANON_ROLE="postgrest_test_anonymous"
|
||||
export PGRST_DB_POOL="1"
|
||||
export PGRST_SERVER_HOST="127.0.0.1"
|
||||
export PGRST_SERVER_PORT="$pgrPort"
|
||||
@@ -22,7 +22,7 @@ result(){ echo "$1 $currentTest $2"; currentTest=$(( currentTest + 1 )); }
|
||||
ok(){ result 'ok' "- $1"; }
|
||||
ko(){ result 'not ok' "- $1"; failedTests=$(( failedTests + 1 )); }
|
||||
|
||||
pgrStart(){ postgrest +RTS -p -h > /dev/null & pgrPID="$!"; }
|
||||
pgrStart(){ postgrest +RTS -p -h > /dev/null 2>&1 & pgrPID="$!"; }
|
||||
pgrStop(){ kill "$pgrPID" 2>/dev/null; }
|
||||
|
||||
checkPgrStarted(){
|
||||
|
||||
Reference in New Issue
Block a user