git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: f06b1c5) | patch
Make test_target_session_attrs more robust against connection failure.
Wed, 3 Mar 2021 18:51:43 +0000 (13:51 -0500)
Wed, 3 Mar 2021 18:51:43 +0000 (13:51 -0500)
commit 3769e11a31831fc2f3bd4c4a24b4f45c352fb8fb
Make test_target_session_attrs more robust against connection failure.

Feed the desired command to psql via "-c" not stdin, else Perl
may complain that it can't push stdin to an already-failed psql
process, as seen in intermittent buildfarm failures.

Make some minor cosmetic improvements while at it.

Before commit ee28cacf6 we had no tests here that expected failure
to connect, so there seems no need for a back-patch.

Discussion: https://postgr.es/m/CALDaNm2mo8YED=M2ZJKGf1U3F3mw6SaQuLXWCK8rZP6sECYcrA@mail.gmail.com
src/test/recovery/t/001_stream_rep.pl diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /