]> git.koha-community.org Git - koha.git/commit
Bug 37898: Wrap Indexer.t inside a transaction
authorTomas Cohen Arazi <tomascohen@theke.io>
Wed, 11 Sep 2024 15:35:17 +0000 (12:35 -0300)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Thu, 19 Sep 2024 11:50:19 +0000 (12:50 +0100)
commitb41fa9b4870d2d829a822fc66dab37d21566dfa5
tree58a601e64e520fbedcd7b3a927a9571d815a4338
parent1e3d24e0589a622b823609b73039aac18cf37c95
Bug 37898: Wrap Indexer.t inside a transaction

This tests leave new data on the DB. This patch fixes it.

To test:
1. Run:
   $ ktd --shell
  k$ echo "SELECT COUNT(*) FROM biblio \G" | koha-mysql kohadev
2. Run:
  k$ prove t/db_dependent/Koha/SearchEngine/Elasticsearch/Indexer.t
=> SUCCESS: Tests pass
3. Repeat 1
=> FAIL: Biblio count raised
4. Apply this patch
5. Repeat 2 and 3
=> SUCCESS: Tests pass
=> SUCCESS: Biblio count remains
6. Sign off :-D

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
t/db_dependent/Koha/SearchEngine/Elasticsearch/Indexer.t