Browse Source

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>
20.11.x
Nick Clemens 11 months ago
committed by Jonathan Druart
parent
commit
80c3e54316
  1. 2
      t/db_dependent/Koha/SearchEngine/Indexer.t

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

Loading…
Cancel
Save