]> git.koha-community.org Git - koha.git/commit
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)
committerAndrew Fuerste-Henry <andrew@bywatersolutions.com>
Thu, 24 Mar 2022 17:37:13 +0000 (17:37 +0000)
commit82e7c4020d95d195fc5df685ce5fd009ece4f99e
tree7ee486fe796b43ac2aa5fba57e0be196af40fbe0
parent7bc90af0be5b77c642056c4dd609c26e5c0d401e
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>
(cherry picked from commit ac53c18af0896115db7cb8f7e9fd6c09ed3fd243)

Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com>
t/db_dependent/Circulation.t