Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitab32a40

Browse files
committed
Fix SSL tests
These were accidentally broken by the great backpatching of331828b.
1 parent196870f commitab32a40

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

‎src/test/ssl/ServerSetup.pm

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ sub copy_files
4646
subconfigure_test_server_for_ssl
4747
{
4848
my$tempdir =$_[0];
49+
my$serverhost =$_[1];
4950

5051
# Create test users and databases
5152
psql'postgres',"CREATE USER ssltestuser";
@@ -58,6 +59,7 @@ sub configure_test_server_for_ssl
5859
print CONF"fsync=off\n";
5960
print CONF"log_connections=on\n";
6061
print CONF"log_hostname=on\n";
62+
print CONF"listen_addresses='$serverhost'\n";
6163
print CONF"log_statement=all\n";
6264

6365
# enable SSL and set up server key

‎src/test/ssl/t/001_ssltests.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ sub test_connect_fails
8484

8585
diag"setting up data directory in\"$tempdir\"...";
8686
start_test_server($tempdir);
87-
configure_test_server_for_ssl($tempdir);
87+
configure_test_server_for_ssl($tempdir,$SERVERHOSTADDR);
8888
switch_server_cert($tempdir,'server-cn-only');
8989

9090
### Part 1. Run client-side tests.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp