Add missing wait_for_catchup() to pg_visibility tap test

e2ed7e3227 introduced check of pg_visibility on standby.  This commit adds
missing wait_for_catchup() to synchronize standby before querying it.
pull/175/head
Alexander Korotkov 1 year ago
parent e2ed7e3227
commit e3ec9dc1bf
  1. 1
      contrib/pg_visibility/t/001_concurrent_transaction.pl

@ -47,6 +47,7 @@ my $result = $node->safe_psql("postgres",
ok($result eq "", "pg_check_visible() detects no errors");
# Run pg_check_visible() on standby
$node->wait_for_catchup($standby);
$result = $standby->safe_psql("postgres",
"SELECT * FROM pg_check_visible('vacuum_test');");

Loading…
Cancel
Save