From: Peter Eisentraut <peter_e@gmx.net>
To: pgsql-committers@postgresql.org
Subject: pgsql: Refactor subscription tests to use PostgresNode's wait_for_catch
Date: Thu, 11 Jan 2018 18:39:04 +0000
Message-ID: <E1eZhkm-0000F6-Vd@gemulon.postgresql.org> (raw)
Refactor subscription tests to use PostgresNode's wait_for_catchup
This was nearly the same code. Extend wait_for_catchup to allow waiting
for pg_current_wal_lsn() and use that in the subscription tests. Also
change one use in the pg_rewind tests to use this.
Also remove some broken code in wait_for_catchup and
wait_for_slot_catchup. The error message in case the waiting failed
wanted to show the current LSN, but the way it was written never
worked. So since nobody ever cared, just remove it.
Reviewed-by: Michael Paquier <michael.paquier@gmail.com>
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/bbd3363e128daec0e70952c1bb2f12ab1f6f1292
Modified Files
--------------
src/bin/pg_rewind/RewindTest.pm | 5 +----
src/test/perl/PostgresNode.pm | 22 +++++++++++++++-------
src/test/subscription/t/001_rep_changes.pl | 19 +++++--------------
src/test/subscription/t/002_types.pl | 15 ++++-----------
src/test/subscription/t/003_constraints.pl | 15 ++++-----------
src/test/subscription/t/004_sync.pl | 14 +++-----------
src/test/subscription/t/005_encoding.pl | 13 ++-----------
src/test/subscription/t/006_rewrite.pl | 17 ++++-------------
src/test/subscription/t/007_ddl.pl | 11 +----------
src/test/subscription/t/008_diff_schema.pl | 15 +++------------
10 files changed, 42 insertions(+), 104 deletions(-)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: peter_e@gmx.net
Subject: Re: pgsql: Refactor subscription tests to use PostgresNode's wait_for_catch
In-Reply-To: <E1eZhkm-0000F6-Vd@gemulon.postgresql.org>
References: <E1eZhkm-0000F6-Vd@gemulon.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox