]> 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)
committerFrédéric Demians <f.demians@tamil.fr>
Wed, 15 Jun 2016 07:08:11 +0000 (09:08 +0200)
commitc8ef873ee9fe97210d00d450a19f6ad52036b400
treeb445b8edea905e1391c83ebd2f9ce4f2a0076d1c
parent9c7c4f02ddad4045fde7ecf68c03389bb6f10436
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>
C4/External/BakerTaylor.pm
t/db_dependent/External_BakerTaylor.t