From: Norbert Buchmuller Date: Wed, 18 Feb 2009 04:07:56 +0000 (+0100) Subject: * Fixed the bug in the test that made it fail in the END block even if all tests... X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=fe0d48d33b0529be347b1f07669415173ef1bc6c;p=dbsrgits%2FDBIx-Class-Historic.git * Fixed the bug in the test that made it fail in the END block even if all tests were SKIPped. --- diff --git a/t/73oracle.t b/t/73oracle.t index ee00ed5..51cc932 100644 --- a/t/73oracle.t +++ b/t/73oracle.t @@ -149,7 +149,7 @@ is($st->pkid1, 55, "Oracle Auto-PK without trigger: First primary key set manual # clean up our mess END { - if($dbh = $schema->storage->dbh) { + if($schema && ($dbh = $schema->storage->dbh)) { $dbh->do("DROP SEQUENCE artist_seq"); $dbh->do("DROP SEQUENCE pkid1_seq"); $dbh->do("DROP SEQUENCE pkid2_seq");