From dbe1f0511ea8e0e1e49cdb0f489886456ea65ac6 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 --- 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; -- 2.11.0