Skip to content

Commit 7db3223

Browse files
committed
Update check to support older pg versions
The `primary_conninfo` setting is not available in Postgres Versions 10 and 11. This change updates the test to use a more general check that works in all versions
1 parent 75be991 commit 7db3223

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

testing/kuttl/e2e/pgbackrest-restore/17--check-replication.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ commands:
1616
--file=- <<'SQL'
1717
DO $$
1818
BEGIN
19-
ASSERT pg_is_in_recovery(), 'expected replica';
20-
ASSERT current_setting('primary_conninfo') <> '', 'expected streaming';
19+
PERFORM * FROM pg_stat_wal_receiver WHERE status = 'streaming';
20+
ASSERT FOUND, 'expected streaming replication';
2121
END $$
2222
SQL

0 commit comments

Comments
 (0)