diff options
author | Andrew Dunstan <andrew@dunslane.net> | 2024-07-09 09:40:30 -0400 |
---|---|---|
committer | Andrew Dunstan <andrew@dunslane.net> | 2024-07-09 09:40:30 -0400 |
commit | d1c30fd884b60c6f342e728df046cf2f701e79d7 (patch) | |
tree | 2408f606b1eaa4bcada9a62ed4fd70d0d54edd2b /src | |
parent | 8b03d743a85fed4930645382a219cc75bdf7ab73 (diff) | |
download | postgresql-d1c30fd884b60c6f342e728df046cf2f701e79d7.tar.gz postgresql-d1c30fd884b60c6f342e728df046cf2f701e79d7.zip |
Unrevert "Force nodes for SSL tests to start in TCP mode"
This reverts commit 8b03d743a85fed4930645382a219cc75bdf7ab73.
Release 12 required a little extra sauce to make it work, but this has
been tested now.
Diffstat (limited to 'src')
-rw-r--r-- | src/test/ssl/t/SSLServer.pm | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/test/ssl/t/SSLServer.pm b/src/test/ssl/t/SSLServer.pm index d25c38dbbc7..0015cc8a0a7 100644 --- a/src/test/ssl/t/SSLServer.pm +++ b/src/test/ssl/t/SSLServer.pm @@ -42,6 +42,13 @@ our @EXPORT = qw( test_connect_ok ); +# 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, it will run after the INIT block in PostgresNode.pm, +# as they run in order of definition (see perlmod). + +INIT { $PostgresNode::use_tcp = 1; $PostgresNode::test_pghost = '127.0.0.1'; } + # Define a couple of helper functions to test connecting to the server. # The first argument is a base connection string to use for connection. |