[Koha-bugs] [Bug 25623] Some tests in oauth.t do not roll back

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri May 29 19:46:28 CEST 2020


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=25623

--- Comment #2 from Tomás Cohen Arazi <tomascohen at gmail.com> ---
Created attachment 105438
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=105438&action=edit
Bug 25623: Make sure oauth.t rolls back the db

This patch adds a missing transaction wrapping one of the subtests. This
is probably an oversight when refactoring this file.

To test:
1. Open the patron categories page
2. Run:
   $ kshell
  k$ prove t/db_dependent/api/v1/oauth.t
=> SUCCESS: Tests pass
3. Reload the patron categories page
=> FAIL: There's random data in there
4. Apply this patch and repeat 2
5. Reload the patron categories page
=> SUCCESS: The random data from the previous tests is still there, but
no new random data
=> SUCCESS: Tests still pass
6. Sign off :-D

Signed-off-by: Tomas Cohen Arazi <tomascohen at theke.io>

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list