diff --git a/src/test/recovery/t/005_replay_delay.pl b/src/test/recovery/t/005_replay_delay.pl index 986851b..9b25f9e 100644 --- a/src/test/recovery/t/005_replay_delay.pl +++ b/src/test/recovery/t/005_replay_delay.pl @@ -24,19 +24,18 @@ $node_standby->init_from_backup($node_master, $backup_name, has_streaming => 1); $node_standby->append_conf( 'recovery.conf', qq( -recovery_min_apply_delay = '2s' +recovery_min_apply_delay = '20s' )); $node_standby->start; # Make new content on master and check its presence in standby -# depending on the delay of 2s applied above. +# depending on the delay of 20s applied above. $node_master->safe_psql('postgres', "INSERT INTO tab_int VALUES (generate_series(11,20))"); -sleep 1; # Here we should have only 10 rows my $result = $node_standby->safe_psql('postgres', "SELECT count(*) FROM tab_int"); -is($result, qq(10), 'check content with delay of 1s'); +is($result, qq(10), 'check content with no delay'); # Now wait for replay to complete on standby my $until_lsn = @@ -46,4 +45,4 @@ my $caughtup_query = $node_standby->poll_query_until('postgres', $caughtup_query) or die "Timed out while waiting for standby to catch up"; $result = $node_standby->safe_psql('postgres', "SELECT count(*) FROM tab_int"); -is($result, qq(20), 'check content with delay of 2s'); +is($result, qq(20), 'check content with delay of 20s');