Skip to content

Commit 3df93a6

Browse files
committed
Use --no-loop for new calls of pg_receivewal --endpos in TAP tests
Those tests are not designed to fail, but if they do, like on some cases for Windows because of ZLIB (?), they could remain stuck. Using --no-loop makes the test fail immediately. The oldest test with --endpos already did that. Those tests have been added in ffc9dda. Reviewed-by: Andrew Dunstan Discussion: https://postgr.es/m/ec093ff1-a53c-0091-46a2-4537354b0dd4@dunslane.net
1 parent df9f0c7 commit 3df93a6

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/bin/pg_basebackup/t/020_pg_receivewal.pl

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,8 @@
9393
$primary->command_ok(
9494
[
9595
'pg_receivewal', '-D', $stream_dir, '--verbose',
96-
'--endpos', $nextlsn, '--compress', '1 '
96+
'--endpos', $nextlsn, '--compress', '1 ',
97+
'--no-loop'
9798
],
9899
"streaming some WAL using ZLIB compression");
99100

@@ -138,7 +139,10 @@
138139
$primary->psql('postgres',
139140
'INSERT INTO test_table VALUES (generate_series(200,300));');
140141
$primary->command_ok(
141-
[ 'pg_receivewal', '-D', $stream_dir, '--verbose', '--endpos', $nextlsn ],
142+
[
143+
'pg_receivewal', '-D', $stream_dir, '--verbose',
144+
'--endpos', $nextlsn, '--no-loop'
145+
],
142146
"streaming some WAL");
143147

144148
$partial_wals[0] =~ s/(\.gz)?.partial//;

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy