Bug 21105: (QA follow-up) Silence warning because of tests setup
authorTomas Cohen Arazi <tomascohen@theke.io>
Fri, 12 Nov 2021 14:15:08 +0000 (11:15 -0300)
committerKyle Hall <kyle@bywatersolutions.com>
Fri, 19 Nov 2021 16:32:05 +0000 (11:32 -0500)
commite9be169152ee03d2d07dada316ea74ffc05a9f93
tree6c7ce019d06ef34c55e5cf631556d9298d260e6b
parent35280e175122c13d0984407b9ff887cae478569d
Bug 21105: (QA follow-up) Silence warning because of tests setup

The tests are using 'http://localhost' and the regex is setting $baseURL
to empty in this case. It works on the oai.pl front-end.

This patch changes the regex.

To test:
1. Run:
   $ kshell
  k$ t/db_dependent/OAI/Server.t
=> FAIL: Boo! Warning!
2. Apply this patch
3. Repeat 2
=> SUCCESS: Oh, cool. No warning :-D
4. Sign off :-D

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Koha/OAI/Server/Identify.pm