X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Fstorage%2Fsavepoints.t;h=b42ceca8902b09d56245de39c534ec99b8d7a712;hb=c5d7250ed959c707f2179ae5e10e8edb27adc92e;hp=0c56afc90094e5c1478c073f47a27cccfbd41e59;hpb=2fb5f18cfcb31f222c9f45a1255818dae5d1da36;p=dbsrgits%2FDBIx-Class.git diff --git a/t/storage/savepoints.t b/t/storage/savepoints.t index 0c56afc..b42ceca 100644 --- a/t/storage/savepoints.t +++ b/t/storage/savepoints.t @@ -228,6 +228,9 @@ for ('', keys %$env2optdep) { SKIP: { undef, 'rollback from inner transaction'; + # make sure a fresh txn will work after above + $schema->storage->txn_do(sub { ok "noop" } ); + ### cleanupz $schema->storage->dbh->do ("DROP TABLE artist"); }} @@ -235,6 +238,6 @@ for ('', keys %$env2optdep) { SKIP: { done_testing; END { - eval { $schema->storage->dbh->do ("DROP TABLE artist") } if defined $schema; + eval { $schema->storage->dbh_do(sub { $_[1]->do("DROP TABLE artist") }) } if defined $schema; undef $schema; }