From a4590d2d9d989e1755ffc3293984b497f87e6afe Mon Sep 17 00:00:00 2001 From: Andrew Kane Date: Fri, 1 Sep 2023 15:49:52 -0700 Subject: [PATCH] Simplified WAL tests [skip ci] --- test/t/001_ivfflat_wal.pl | 2 -- test/t/010_hnsw_wal.pl | 2 -- 2 files changed, 4 deletions(-) diff --git a/test/t/001_ivfflat_wal.pl b/test/t/001_ivfflat_wal.pl index be249ef..b19eb40 100644 --- a/test/t/001_ivfflat_wal.pl +++ b/test/t/001_ivfflat_wal.pl @@ -19,8 +19,6 @@ sub test_index_replay # Wait for replica to catch up my $applname = $node_replica->name; - - my $server_version_num = $node_primary->safe_psql("postgres", "SHOW server_version_num"); my $caughtup_query = "SELECT pg_current_wal_lsn() <= replay_lsn FROM pg_stat_replication WHERE application_name = '$applname';"; $node_primary->poll_query_until('postgres', $caughtup_query) or die "Timed out while waiting for replica 1 to catch up"; diff --git a/test/t/010_hnsw_wal.pl b/test/t/010_hnsw_wal.pl index 422a10b..36c0dc5 100644 --- a/test/t/010_hnsw_wal.pl +++ b/test/t/010_hnsw_wal.pl @@ -19,8 +19,6 @@ sub test_index_replay # Wait for replica to catch up my $applname = $node_replica->name; - - my $server_version_num = $node_primary->safe_psql("postgres", "SHOW server_version_num"); my $caughtup_query = "SELECT pg_current_wal_lsn() <= replay_lsn FROM pg_stat_replication WHERE application_name = '$applname';"; $node_primary->poll_query_until('postgres', $caughtup_query) or die "Timed out while waiting for replica 1 to catch up";