$schema isn't defined if the test is skipped.
Michael G Schwern [Fri, 31 Aug 2007 06:39:40 +0000 (23:39 -0700)]
t/73oracle_inflate.t

index 76085e6..41a04bb 100644 (file)
@@ -55,7 +55,10 @@ is( $track->last_updated_on->month, $dt->month, "deflate ok");
 # clean up our mess
 END {
     # Set the metadata back for the last_updated_on column
-    $schema->class('Track')->add_column( 'last_updated_on' => $col_metadata );
+    if( $schema ) {
+        $schema->class('Track')
+               ->add_column( 'last_updated_on' => $col_metadata );
+    }
 
     if($dbh) {
         $dbh->do("DROP TABLE track");