Fix mistakes in recovery tests
authorAlvaro Herrera <alvherre@alvh.no-ip.org>
Thu, 3 Mar 2016 15:49:02 +0000 (12:49 -0300)
committerAlvaro Herrera <alvherre@alvh.no-ip.org>
Thu, 3 Mar 2016 15:51:47 +0000 (12:51 -0300)
commit5bec1ad4648e71711357caa0ae0030f5ccb911d7
tree3dea752b5b93c3b35e929fe42e99658ff881656c
parentc7111d11b188bd631a63c98e9aab8532176007c3
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
src/test/recovery/t/003_recovery_targets.pl
src/test/recovery/t/004_timeline_switch.pl