Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit cd07f73

Browse files
committed
Fix recovery test hang
The test would hang if a sufficient ~/.psqlrc was present. Fix by using psql -X.
1 parent 87dee41 commit cd07f73

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/recovery/t/011_crash_recovery.pl

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
# an xact to be in-progress when we crash and we need to know
1919
# its xid.
2020
my $tx = IPC::Run::start(
21-
['psql', '-qAt', '-v', 'ON_ERROR_STOP=1', '-f', '-', '-d', $node->connstr('postgres')],
21+
['psql', '-X', '-qAt', '-v', 'ON_ERROR_STOP=1', '-f', '-', '-d', $node->connstr('postgres')],
2222
'<', \$stdin, '>', \$stdout, '2>', \$stderr);
2323
$stdin .= q[
2424
BEGIN;

0 commit comments

Comments
 (0)