From c9b1de9e6deaa98092f9d3adf8bbeadf9250b4f4 Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Tue, 16 Jul 2019 18:13:57 +0000 Subject: [PATCH] Bug 20607: (QA follow-up) Test corrections Signed-off-by: Nick Clemens Signed-off-by: Martin Renvoize Signed-off-by: Nick Clemens https://bugs.koha-community.org/show_bug.cgi?id=23078 --- t/db_dependent/Koha/SearchEngine/Elasticsearch/Reset.t | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/t/db_dependent/Koha/SearchEngine/Elasticsearch/Reset.t b/t/db_dependent/Koha/SearchEngine/Elasticsearch/Reset.t index 9989533c07..7222bc0e0d 100644 --- a/t/db_dependent/Koha/SearchEngine/Elasticsearch/Reset.t +++ b/t/db_dependent/Koha/SearchEngine/Elasticsearch/Reset.t @@ -48,6 +48,8 @@ use_ok('Koha::SearchEngine::Elasticsearch'); my $schema = Koha::Database->new->schema; +$schema->storage->txn_begin; + Koha::SearchFields->search->delete; Koha::SearchMarcMaps->search->delete; $schema->resultset('SearchMarcToField')->search->delete; @@ -63,4 +65,4 @@ is($match_sf->weight, '15.00', 'Match search field is weighted with 15'); my $title_sf = Koha::SearchFields->search({ name => 'title' })->next; is($title_sf->weight, '20.00', 'Title search field is weighted with 20'); -$schema->storage->txn_begin; +$schema->storage->txn_rollback; -- 2.11.0