Standardized test incantations
[dbsrgits/DBM-Deep.git] / t / 41_transaction_multilevel.t
index d125582..584eb89 100644 (file)
@@ -8,7 +8,6 @@ use_ok( 'DBM::Deep' );
 my ($fh, $filename) = new_fh();
 my $db1 = DBM::Deep->new(
     file => $filename,
-    fh => $fh,
     locking => 1,
     autoflush => 1,
     num_txns  => 2,
@@ -17,7 +16,6 @@ seek $db1->_get_self->_engine->storage->{fh}, 0, 0;
 
 my $db2 = DBM::Deep->new(
     file => $filename,
-    fh => $fh,
     locking => 1,
     autoflush => 1,
     num_txns  => 2,
@@ -27,7 +25,6 @@ $db1->{x} = { xy => { foo => 'y' } };
 is( $db1->{x}{xy}{foo}, 'y', "Before transaction, DB1's X is Y" );
 is( $db2->{x}{xy}{foo}, 'y', "Before transaction, DB2's X is Y" );
 
-#warn $db1->_dump_file;
 $db1->begin_work;
 
     cmp_bag( [ keys %$db1 ], [qw( x )], "DB1 keys correct" );
@@ -49,9 +46,8 @@ $db1->begin_work;
     cmp_bag( [ keys %{$db1->{x}} ], [qw( yz )], "DB1->X keys correct" );
     cmp_bag( [ keys %{$db2->{x}} ], [qw( xy )], "DB2->X keys correct" );
 
-#warn $db1->_dump_file;
 $db1->rollback;
-__END__
+
 cmp_bag( [ keys %$db1 ], [qw( x )], "DB1 keys correct" );
 cmp_bag( [ keys %$db2 ], [qw( x )], "DB2 keys correct" );