Skip to content

Commit d3e31a9

Browse files
author
Rafa de la Torre
committed
Allow tests to be executed against pgbouncer
pgbouncer does not support the `--client-min-messages` option. Actually it fails connections if used like that with this somewhat cryptic message: ``` psql: ERROR: Unsupported startup parameter: options ``` In order to be able to execute tests against pgbouncer port (which is desirable IMO), we either need to remove that option (with little to no impact) or change the lines above to choose the batch API port from the config. Mind that this affects just test setup.
1 parent dce803d commit d3e31a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/prepare_db.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ if test x"$PREPARE_PGSQL" = xyes; then
107107
sed "s/:PUBLICPASS/${PUBLICPASS}/" |
108108
sed "s/:TESTUSER/${TESTUSER}/" |
109109
sed "s/:TESTPASS/${TESTPASS}/" |
110-
PGOPTIONS='--client-min-messages=WARNING' psql -q -v ON_ERROR_STOP=1 ${TEST_DB} > /dev/null || exit 1
110+
psql -q -v ON_ERROR_STOP=1 ${TEST_DB} > /dev/null || exit 1
111111
done
112112

113113
fi

0 commit comments

Comments
 (0)