Adjust the storage DESTROY and the tests to accomodate the new global RaiseError=1
[dbsrgits/DBIx-Class.git] / t / 745db2.t
index 2e76bca..3ba8579 100644 (file)
@@ -49,7 +49,7 @@ is( $it->count, 3, "LIMIT count ok" );
 my @all = $it->all;
 is (@all, 3, 'Number of ->all objects matches count');
 
-$it->reset
+$it->reset;
 is( $it->next->name, "foo", "iterator->next ok" );
 is( $it->next->name, "Artist 1", "iterator->next ok" );
 is( $it->next->name, "Artist 2", "iterator->next ok" );
@@ -85,5 +85,6 @@ is_deeply($type_info, $test_type_info, 'columns_info_for - column data types');
 
 # clean up our mess
 END {
+    my $dbh = eval { $schema->storage->_dbh };
     $dbh->do("DROP TABLE artist") if $dbh;
 }