From 80c3e543163053836a171bde03c9afd70e5b838a Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Mon, 2 Nov 2020 12:46:59 +0000 Subject: [PATCH] Bug 26581: (follow-up) Skip merge when deleting authority Tests failing, seems to be because the indexes haven't been created yet. When deleting authority we perform a 'merge' where we search for biblios containing the authority. Since these are simply tets we can skip this step, avoid the search, and avoid a crash Signed-off-by: Jonathan Druart --- t/db_dependent/Koha/SearchEngine/Indexer.t | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/t/db_dependent/Koha/SearchEngine/Indexer.t b/t/db_dependent/Koha/SearchEngine/Indexer.t index 997f6f17ca..3e32f4441a 100755 --- a/t/db_dependent/Koha/SearchEngine/Indexer.t +++ b/t/db_dependent/Koha/SearchEngine/Indexer.t @@ -97,7 +97,7 @@ subtest 'Test indexer calls' => sub { } [$engine,"C4::AuthoritiesMarc"], "index_records is called for $engine is called when adding authority"; warnings_are{ - $authid = DelAuthority({ authid => $authid }); + $authid = DelAuthority({ authid => $authid, skip_merge => 1 }); } [$engine,"C4::AuthoritiesMarc"], "index_records is called for $engine is called when adding authority"; my $biblio;