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

Commit3df93a6

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 casesfor 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 inffc9dda.Reviewed-by: Andrew DunstanDiscussion:https://postgr.es/m/ec093ff1-a53c-0091-46a2-4537354b0dd4@dunslane.net
1 parentdf9f0c7 commit3df93a6

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)

[8]ページ先頭

©2009-2025 Movatter.jp