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

Commit1beb3ac

Browse files
committed
Fix rare failure in LDAP tests.
Instead of writing a query to psql's stdin, use -c. This avoids afailure where psql exits before we write, seen a few times on the buildfarm. Thanks to Tom Lane for the suggestion.Back-patch to 11, where the LDAP tests arrived.Reviewed-by: Noah Misch <noah@leadboat.com>Discussion:https://postgr.es/m/CA%2BhUKGLFmW%2BHQYPeKiwSp5sdFFHtFViCpw4Mh6yAgEx74r5-Cw%40mail.gmail.com
1 parent1785ac8 commit1beb3ac

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

‎src/test/ldap/t/001_auth.pl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,8 @@ sub test_access
158158
my ($node,$role,$expected_res,$test_name) =@_;
159159

160160
my$res =
161-
$node->psql('postgres','SELECT 1',extra_params=> ['-U',$role ]);
161+
$node->psql('postgres',undef,
162+
extra_params=> ['-U',$role,'-c','SELECT 1' ]);
162163
is($res,$expected_res,$test_name);
163164
return;
164165
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp