pgsql: Improve recently-added test reliability

From: Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Improve recently-added test reliability
Date: 2022-08-06 13:54:00
Message-ID: E1oKKFb-000aAF-Rh@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Improve recently-added test reliability

Commit 59be1c942a47 already tried to make
src/test/recovery/t/033_replay_tsp_drops more reliable, but it wasn't
enough. Try to improve on that by making this use of a replication slot
to be more like others. Also, don't drop the slot.

Make a few other stylistic changes while at it. It's still quite slow,
which is another thing that we need to fix in this script.

Backpatch to all supported branches.

Discussion: https://postgr.es/m/349302.1659191875@sss.pgh.pa.us

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/6c1c9f88ad5484fbef201b6adf59c319ceed764e

Modified Files
--------------
src/test/recovery/t/033_replay_tsp_drops.pl | 37 ++++++++++-------------------
1 file changed, 12 insertions(+), 25 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Andres Freund 2022-08-06 15:44:40 pgsql: Simplify gettimeofday() fallback logic.
Previous Message Michael Paquier 2022-08-06 12:16:27 pgsql: Fix comment in copyfrom_internal.h