From a5b9bbe042f0d11bf42a8eaa9f501909810ff8b9 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Thu, 8 Jun 2017 15:36:40 -0300 Subject: [PATCH] Bug 18762: Remove a warning from History.t Test plan: prove t/db_dependent/Search/History.t should not display any warnings Signed-off-by: Lee Jamison Signed-off-by: Mark Tompsett (cherry picked from commit 15f9e830ece26b5eead340e67b8d05b4bd07e930) Signed-off-by: Fridolin Somers (cherry picked from commit 5c0e28d092730e8402739588f159e5607d518a6f) Signed-off-by: Katrin Fischer --- t/db_dependent/Search/History.t | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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; -- 2.39.5