Silence some warnings in TAP tests

Author: Michael Paquier
This commit is contained in:
Magnus Hagander 2018-04-09 21:45:48 +02:00
parent 5d5aeddabf
commit d7754822c5
2 changed files with 2 additions and 2 deletions

View File

@ -48,7 +48,7 @@ ok(!-d "$tempdir/backup", 'backup directory was cleaned up');
# but leave the data directory behind
mkdir("$tempdir/backup")
or BAIL_OUT("unable to create $tempdir/backup");
append_to_file("$tempdir/backup/dir-not-empty.txt");
append_to_file("$tempdir/backup/dir-not-empty.txt", "Some data");
$node->command_fails([ 'pg_basebackup', '-D', "$tempdir/backup", '-n' ],
'failing run with no-clean option');

View File

@ -1541,7 +1541,7 @@ sub wait_for_catchup
. $standby_name . "'s "
. $mode
. "_lsn to pass "
. $target_lsn . " on "
. $lsn_expr . " on "
. $self->name . "\n";
my $query =
qq[SELECT $lsn_expr <= ${mode}_lsn FROM pg_catalog.pg_stat_replication WHERE application_name = '$standby_name';];