]> git.koha-community.org Git - koha.git/commit
Bug 16636: [QA Follow-up] Make BakerTaylor plack safe
authorMarcel de Rooy <m.de.rooy@rijksmuseum.nl>
Fri, 10 Jun 2016 07:30:51 +0000 (09:30 +0200)
committerJulian Maurice <julian.maurice@biblibre.com>
Thu, 16 Jun 2016 10:05:38 +0000 (12:05 +0200)
commit17bd3a5debfcdce5e1b2fa55a3cdebcc4850ab8e
treed7b02d15b45324caca6b51dd9b13d180e03081e3
parentcd8fc9afcdf6a9c0b8420882ac32e81db9ecfd72
Bug 16636: [QA Follow-up] Make BakerTaylor plack safe

Initialize file level lexicals each call. Do not call _initialize
outside the module.
Adjust test by mocking preferences.

Test plan:
Run t/db_dependent/External_BakerTaylor.t.

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Tested module with trivial script under Plack/memcached by toggling
the associated preferences.

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
(cherry picked from commit 5361440f6538127c8c3ec61d963d5f0692c64a71)
Signed-off-by: Frédéric Demians <f.demians@tamil.fr>
(cherry picked from commit c8ef873ee9fe97210d00d450a19f6ad52036b400)
Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>
C4/External/BakerTaylor.pm
t/db_dependent/External_BakerTaylor.t