aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichael Paquier <michael@paquier.xyz>2021-07-30 21:28:03 +0900
committerMichael Paquier <michael@paquier.xyz>2021-07-30 21:28:03 +0900
commit3df93a66593c344e6298e618df3fa5090fca4309 (patch)
tree308bd09186f878bf89b7b46ee35eb843776aeb7a /src
parentdf9f0c716cc75d9842b3de79159b9191c108987c (diff)
downloadpostgresql-3df93a66593c344e6298e618df3fa5090fca4309.tar.gz
postgresql-3df93a66593c344e6298e618df3fa5090fca4309.zip
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
Diffstat (limited to 'src')
-rw-r--r--src/bin/pg_basebackup/t/020_pg_receivewal.pl8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/bin/pg_basebackup/t/020_pg_receivewal.pl b/src/bin/pg_basebackup/t/020_pg_receivewal.pl
index 65076d66329..463dddbca8d 100644
--- a/src/bin/pg_basebackup/t/020_pg_receivewal.pl
+++ b/src/bin/pg_basebackup/t/020_pg_receivewal.pl
@@ -93,7 +93,8 @@ SKIP:
$primary->command_ok(
[
'pg_receivewal', '-D', $stream_dir, '--verbose',
- '--endpos', $nextlsn, '--compress', '1 '
+ '--endpos', $nextlsn, '--compress', '1 ',
+ '--no-loop'
],
"streaming some WAL using ZLIB compression");
@@ -138,7 +139,10 @@ chomp($nextlsn);
$primary->psql('postgres',
'INSERT INTO test_table VALUES (generate_series(200,300));');
$primary->command_ok(
- [ 'pg_receivewal', '-D', $stream_dir, '--verbose', '--endpos', $nextlsn ],
+ [
+ 'pg_receivewal', '-D', $stream_dir, '--verbose',
+ '--endpos', $nextlsn, '--no-loop'
+ ],
"streaming some WAL");
$partial_wals[0] =~ s/(\.gz)?.partial//;