summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/test/ssl/t/SSLServer.pm6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/test/ssl/t/SSLServer.pm b/src/test/ssl/t/SSLServer.pm
index 1e392b8fbf6..0843495546c 100644
--- a/src/test/ssl/t/SSLServer.pm
+++ b/src/test/ssl/t/SSLServer.pm
@@ -42,6 +42,12 @@ 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 so it runs after the BEGIN block in TestLib.pm.
+
+INIT { $TestLib::use_unix_sockets = 0; }
+
# Define a couple of helper functions to test connecting to the server.
# The first argument is a base connection string to use for connection.