Bug 29857: (follow-up) Fix t/db_dependent/Koha/Biblio.t

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
This commit is contained in:
Tomas Cohen Arazi 2022-03-02 09:49:25 -03:00 committed by Fridolin Somers
parent 279c63ad98
commit 9980a0f750
1 changed files with 2 additions and 2 deletions

View File

@ -544,7 +544,7 @@ subtest 'get_marc_components() tests' => sub {
sub { Koha::Exception->throw("error searching analytics") }
);
warning_like { $components = $host_biblio->get_marc_components }
qr{^Warning from simple_search_compat: 'error searching analytics'};
qr{Warning from simple_search_compat: .* 'error searching analytics'};
is_deeply(
$host_biblio->object_messages,
@ -552,7 +552,7 @@ subtest 'get_marc_components() tests' => sub {
{
type => 'error',
message => 'component_search',
payload => "error searching analytics"
payload => "Exception 'Koha::Exception' thrown 'error searching analytics'\n"
}
]
);