Skip to content

Commit

Permalink
Skip replication slot tests before 9.4
Browse files Browse the repository at this point in the history
(Refers to #109)
  • Loading branch information
df7cb committed Jun 3, 2016
1 parent a3ea525 commit 90de7df
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions t/02_replication_slots.t
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,14 @@ diag "Connected as $port:$host:$dbname\n";
my $S = q{Action 'replication_slots'};
my $label = 'POSTGRES_REPLICATION_SLOTS';

my $ver = $dbh->{pg_server_version};
if ($ver < 90400) {
SKIP: {
skip 'replication slots not present before 9.4', 20;
}
exit 0;
}

$t = qq{$S self-identifies correctly};
$result = $cp->run(q{-w 0});
like ($result, qr{^$label}, $t);
Expand Down

0 comments on commit 90de7df

Please sign in to comment.