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 <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
Nick Clemens 2020-11-02 12:46:59 +00:00 committed by Jonathan Druart
parent 03742a1e24
commit 80c3e54316

View file

@ -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;