Bug 33054: Fix unit tests
authorTomas Cohen Arazi <tomascohen@theke.io>
Fri, 24 Feb 2023 17:43:18 +0000 (14:43 -0300)
committerTomas Cohen Arazi <tomascohen@theke.io>
Fri, 24 Feb 2023 19:42:07 +0000 (16:42 -0300)
commit2c4dbb7c1e0e8837e54ed44f453ac27473cd0c45
tree045102f05d267ab5a976b3b0a59b5c4af9b8336c
parent6498c5835c99bfc628ae87bbc43808dfd89f0d87
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>
t/db_dependent/Koha/Acquisition/Order.t