X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F81transactions.t;h=847963ef369e589c8d2dd4d975b40a8935e10c6e;hb=3885cff6485aba6a4708efb7f98877bc8e5d4369;hp=fe3c453704fc2386156d44ce0537f1e49eecbb6c;hpb=d6915f449e2d68ac184d6bc616043fd605913757;p=dbsrgits%2FDBIx-Class.git diff --git a/t/81transactions.t b/t/81transactions.t index fe3c453..847963e 100644 --- a/t/81transactions.t +++ b/t/81transactions.t @@ -5,7 +5,7 @@ use Test::More; use lib qw(t/lib); use DBICTest; -my $schema = DBICTest::init_schema(); +my $schema = DBICTest->init_schema(); plan tests => 39; @@ -117,6 +117,7 @@ my $fail_code = sub { # Force txn_rollback() to throw an exception no warnings 'redefine'; + no strict 'refs'; local *{"DBIx::Class::Schema::txn_rollback"} = sub{die 'FAILED'}; eval {