Fix test failure if Test::PostgreSQL is installed but not working
Dagfinn Ilmari Mannsåker [Tue, 2 Sep 2014 22:23:18 +0000 (23:23 +0100)]
Changes
t/postgresql-rename-table-and-field.t

diff --git a/Changes b/Changes
index 4578fc1..e9348f3 100644 (file)
--- a/Changes
+++ b/Changes
@@ -1,5 +1,7 @@
 Changes for SQL::Translator
 
+ * Fix test failure if Test::PostgreSQL is installed but not working
+
 0.11019 2014-09-02
 
  * Add Json and hstore types to Pg Parser (cloudinstustrie)
index 887f023..c6a0473 100644 (file)
@@ -19,7 +19,7 @@ else {
     no warnings 'once';
     maybe_plan(undef, 'Test::PostgreSQL');
     $pgsql = Test::PostgreSQL->new
-        or die "Can't create test database: $Test::PostgreSQL::errstr";
+        or plan skip_all => "Can't create test database: $Test::PostgreSQL::errstr";
     $dsn = $pgsql->dsn;
 };