X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F33storage_reconnect.t;h=8dcaeec10091dbffd1b31256854faf60a1fe921d;hb=22fc6155604d74131543cbb49313b6b65ae2ce83;hp=f069ef0636898f8063923885e03ffbefa79df989;hpb=e7827df02409b8e642cd68fca01de4a1c8fbb628;p=dbsrgits%2FDBIx-Class.git diff --git a/t/33storage_reconnect.t b/t/33storage_reconnect.t index f069ef0..8dcaeec 100644 --- a/t/33storage_reconnect.t +++ b/t/33storage_reconnect.t @@ -49,11 +49,15 @@ ok( $@, 'The operation failed' ); unlink($db_orig); move( $db_tmp, $db_orig ); -### Try the operation again... this time, it should succeed -my @art_four; -eval { - @art_four = $schema->resultset("Artist")->search( {}, { order_by => 'name DESC' } ); -}; -ok( !$@, 'The operation succedded' ); -cmp_ok( @art_four, '==', 3, "Three artists returned" ); - +SKIP: { + skip "Cannot reconnect if original connection didn't fail", 2 + if ( $@ =~ /encrypted or is not a database/ ); + + ### Try the operation again... this time, it should succeed + my @art_four; + eval { + @art_four = $schema->resultset("Artist")->search( {}, { order_by => 'name DESC' } ); + }; + ok( !$@, 'The operation succeeded' ); + cmp_ok( @art_four, '==', 3, "Three artists returned" ); +}