diff options
author | Andrew Dunstan <andrew@dunslane.net> | 2024-07-08 05:51:26 -0400 |
---|---|---|
committer | Andrew Dunstan <andrew@dunslane.net> | 2024-07-08 11:40:58 -0400 |
commit | e4f4c5424cf9564b934ac6f632c6c90a2edddb77 (patch) | |
tree | b6592db2159a399e0c35420afef924a2dde64050 /src | |
parent | 6082b3d5d3d141aa1ec67ff98955a0d8e12d0e1a (diff) | |
download | postgresql-e4f4c5424cf9564b934ac6f632c6c90a2edddb77.tar.gz postgresql-e4f4c5424cf9564b934ac6f632c6c90a2edddb77.zip |
Force nodes for SSL tests to start in TCP mode
Currently they are started in unix socket mode in ost cases, and then
converted to run in TCP mode. This can result in port collisions, and
there is no virtue in startng in unix socket mode, so start as we will
be going on.
Discussion: https://postgr.es/m/d6ee8761-39d1-0033-1afb-d5a57ee056f2@gmail.com
Backpatch to all live branches (12 and up).
Diffstat (limited to 'src')
-rw-r--r-- | src/test/ssl/t/SSL/Server.pm | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/test/ssl/t/SSL/Server.pm b/src/test/ssl/t/SSL/Server.pm index ca4c7b567b3..021eec74abf 100644 --- a/src/test/ssl/t/SSL/Server.pm +++ b/src/test/ssl/t/SSL/Server.pm @@ -70,6 +70,12 @@ use PostgreSQL::Test::Utils; use Test::More; use SSL::Backend::OpenSSL; +# Force SSL tests nodes to begin in TCP mode. They won't work in Unix Socket +# mode and this way they will find a port to run on in a more robust way. +# Use an INIT block so it runs after the BEGIN block in Utils.pm. + +INIT { $PostgreSQL::Test::Utils::use_unix_sockets = 0; } + =pod =head1 METHODS |