]> git.koha-community.org Git - koha.git/commit
Bug 29862: Add missing txn begin/rollback in TestBuilder.t
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 17 Jan 2022 10:40:00 +0000 (11:40 +0100)
committerVictor Grousset/tuxayo <victor@tuxayo.net>
Thu, 24 Feb 2022 22:34:10 +0000 (23:34 +0100)
commitd7e2701415c4ddbc11e704af41ee3776ce0009b1
tree94e057a2e0626e70ffb2c59e01a37daa768a3f8a
parentc8c99b1f341e0e5923304219110f9dec36d8bc64
Bug 29862: Add missing txn begin/rollback in TestBuilder.t

It fixes the tests when SearchEngine=ES
 t/db_dependent/TestBuilder.t .. 7/15 Invalid MARC field expression: l5ffglZ_upqqcwOvaiyALgXfyJw2Ot2AGRPUsiAPzSFHfd8J_hsnuQ8z75B8RKc_kyo2rFBp8BrPNwcM1FPhc01ngP01HU_Z7Rx1VHfcIcmrifYnjBDWNmYB9N5_4xEnxMH7ZhqC9b2Bz9wf9
 wSEmx64x6t5xFFKX at /kohadevbox/koha/C4/Biblio.pm line 306.
     # Looks like you planned 12 tests but ran 6.

 #   Failed test 'Tests for delete method'
 #   at t/db_dependent/TestBuilder.t line 302.
 Can't call method "biblionumber" on an undefined value at t/db_dependent/TestBuilder.t line 281.
 # Looks like your test exited with 11 just after 8.

Previous subtest created invalid date in the ES mappings.

Test plan:
Set SearchEngine=ES and run the tests, they must pass.

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 27ec3a5d4c2b8bc304d23197563952ef47d5986a)

Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com>
(cherry picked from commit 6c206df70a699679e59b56207cefb66e8f61eb5f)
Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
t/db_dependent/TestBuilder.t