diff --git a/t/db_dependent/Search/History.t b/t/db_dependent/Search/History.t index 27a7a732bb..0a21215034 100644 --- a/t/db_dependent/Search/History.t +++ b/t/db_dependent/Search/History.t @@ -9,9 +9,10 @@ use List::Util qw( shuffle ); use C4::Context; use Koha::DateUtils; + +my $schema = Koha::Database->new->schema; +$schema->storage->txn_begin; my $dbh = C4::Context->dbh; -$dbh->{AutoCommit} = 0; -$dbh->{RaiseError} = 1; use_ok('Koha::DateUtils'); use_ok('C4::Search::History'); @@ -345,6 +346,4 @@ sub delete_all { }); } -$dbh->rollback; - done_testing;