]> git.koha-community.org Git - koha.git/commit
Bug 33054: Fix unit tests
authorTomas Cohen Arazi <tomascohen@theke.io>
Fri, 24 Feb 2023 17:43:18 +0000 (14:43 -0300)
committerMatt Blenkinsop <matt.blenkinsop@ptfs-europe.com>
Tue, 28 Feb 2023 10:26:10 +0000 (10:26 +0000)
commit19488db9b7ec6016033ca56cca8d0610f7a1f011
tree74c9f7f3e9b49aeea596b91662ed6acd64e023a1
parent6800a10e1627843520bc49700a4de537a8088ac0
Bug 33054: Fix unit tests

This patch fixes the tests by making sure:
- The branch in userenv matches the home/holding branch so there are no
  circ rules getting in the middle
- Gives the user superlibrarian permissions for the same reasons above.

To test:
1. Run:
   $ ktd --shell
  k$ for i in $(seq 1 20 ); do prove t/db_dependent/Koha/Acquisition/Order.t ; done
=> FAIL: Notice it fails quite often. You can ctrl+c to interrupt once
it has failed at least once.
2. Apply this patch
3. Repeat 1
=> SUCCESS: it doesn't fail a single time
4. Sign off :-D

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit 2c4dbb7c1e0e8837e54ed44f453ac27473cd0c45)
Signed-off-by: Matt Blenkinsop <matt.blenkinsop@ptfs-europe.com>
t/db_dependent/Koha/Acquisition/Order.t