diff options
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/perl/PostgresNode.pm | 5 | ||||
-rw-r--r-- | src/test/recovery/t/004_timeline_switch.pl | 5 |
2 files changed, 4 insertions, 6 deletions
diff --git a/src/test/perl/PostgresNode.pm b/src/test/perl/PostgresNode.pm index 6e5a75a050b..c1b16ca9e9e 100644 --- a/src/test/perl/PostgresNode.pm +++ b/src/test/perl/PostgresNode.pm @@ -723,7 +723,7 @@ sub restart =item $node->promote() -Wrapper for pg_ctl promote +Wrapper for pg_ctl promote -w =cut @@ -735,7 +735,8 @@ sub promote my $logfile = $self->logfile; my $name = $self->name; print "### Promoting node \"$name\"\n"; - TestLib::system_log('pg_ctl', '-D', $pgdata, '-l', $logfile, 'promote'); + TestLib::system_log('pg_ctl', '-D', $pgdata, '-w', '-l', $logfile, + 'promote'); } # Internal routine to enable streaming replication on a standby node. diff --git a/src/test/recovery/t/004_timeline_switch.pl b/src/test/recovery/t/004_timeline_switch.pl index 3ee8df2cdc2..5f3b2fe1ddb 100644 --- a/src/test/recovery/t/004_timeline_switch.pl +++ b/src/test/recovery/t/004_timeline_switch.pl @@ -57,10 +57,7 @@ recovery_target_timeline='latest' $node_standby_2->restart; # Insert some data in standby 1 and check its presence in standby 2 -# to ensure that the timeline switch has been done. Standby 1 needs -# to exit recovery first before moving on with the test. -$node_standby_1->poll_query_until('postgres', - "SELECT pg_is_in_recovery() <> true"); +# to ensure that the timeline switch has been done. $node_standby_1->safe_psql('postgres', "INSERT INTO tab_int VALUES (generate_series(1001,2000))"); $until_lsn = $node_standby_1->safe_psql('postgres', |