pgsql: Fix mistakes in recovery tests

From: Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Fix mistakes in recovery tests
Date: 2016-03-03 15:54:36
Message-ID: E1abVaG-0001lM-3o@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Fix mistakes in recovery tests

One test was relying on method remove_tree that isn't implemented in the
oldest Perl we support; fix it by using the older rmtree instead.

Another test had a typo in a SQL command, which isn't noticed because
the PostgresNode->psql() method doesn't check that queries return
correctly. That's undesirable and will also be fixed later on, but for
now let's make the test actually work.

Author: Craig Ringer

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/5bec1ad4648e71711357caa0ae0030f5ccb911d7

Modified Files
--------------
src/test/recovery/t/003_recovery_targets.pl | 2 +-
src/test/recovery/t/004_timeline_switch.pl | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Alvaro Herrera 2016-03-03 16:25:28 pgsql: perltidy PostgresNode and SimpleTee
Previous Message Andrew Dunstan 2016-03-03 13:06:47 Re: pgsql: Fix json_to_record() bug with nested objects.