diff --git a/src/bin/pg_basebackup/t/040_pg_createsubscriber.pl b/src/bin/pg_basebackup/t/040_pg_createsubscriber.pl index c1fc0cf..773a27b 100644 --- a/src/bin/pg_basebackup/t/040_pg_createsubscriber.pl +++ b/src/bin/pg_basebackup/t/040_pg_createsubscriber.pl @@ -327,7 +327,7 @@ $node_p->reload; # 'max_slot_wal_keep_size' command_checks_all( [ - 'pg_createsubscriber', '--verbose', + 'pg_createsubscriber', '--verbose', '--verbose', '--recovery-timeout', "$PostgreSQL::Test::Utils::timeout_default", '--dry-run', '--pgdata', $node_s->data_dir, '--publisher-server', @@ -350,6 +350,26 @@ command_checks_all( 'Validate warning for misconfigured max_slot_wal_keep_size on the publisher' ); +# And, same again to see the output... +command_ok( + [ + 'pg_createsubscriber', '--verbose', '--verbose', + '--recovery-timeout', "$PostgreSQL::Test::Utils::timeout_default", + '--dry-run', '--pgdata', + $node_s->data_dir, '--publisher-server', + $node_p->connstr($db1), '--socketdir', + $node_s->host, '--subscriber-port', + $node_s->port, '--publication', + 'pub1', '--publication', + 'pub2', '--subscription', + 'sub1', '--subscription', + 'sub2', '--database', + $db1, '--database', + $db2 + ], + 'Ditto above, but this time using command_ok to retain the output' +); + # Reset 'max_slot_wal_keep_size' to default after the test $node_p->append_conf('postgresql.conf', 'max_slot_wal_keep_size = -1'); $node_p->reload;