Bug 30203: Circulation.t: prevent locking by setting envvar
authorMarcel de Rooy <m.de.rooy@rijksmuseum.nl>
Thu, 3 Mar 2022 10:27:20 +0000 (10:27 +0000)
committerKyle Hall <kyle@bywatersolutions.com>
Fri, 4 Mar 2022 15:31:34 +0000 (10:31 -0500)
commitac53c18af0896115db7cb8f7e9fd6c09ed3fd243
tree6f564b24830196bc55cbe035634b6432c1dcadee
parentf3e45a1610afa5f8dfcf3ed2131ded3c26362436
Bug 30203: Circulation.t: prevent locking by setting envvar

Running this test without prove is disastrous. The LOCK in
the called SendCirculationAlert will ruin your data.
But no longer when you apply this patch.

Test plan:
Run prove Circulation.t
Inspect your data (e.g. borrowers table).
Run perl Circulation.t
Inspect your data (e.g. borrowers table) again.

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
t/db_dependent/Circulation.t