]> git.koha-community.org Git - koha.git/commit
Bug 24813: Prevent api/v1/holds.t to fail randomly
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Thu, 5 Mar 2020 15:27:15 +0000 (16:27 +0100)
committerLucas Gass <lucas@bywatersolutions.com>
Thu, 9 Apr 2020 20:15:37 +0000 (20:15 +0000)
commit1993e98edf0c272d6d93e18292a5c8b79da4b458
treecb7674f9e46f8fbcea92b326861069fd95aead26
parent76ecea1430bbbf236ab60064b4c81fe2a60d9d9b
Bug 24813: Prevent api/v1/holds.t to fail randomly

Hold cannot be suspended if found=W:
Koha::Hold->suspend_hold
 90     if ( $self->is_found ) {    # We can't suspend found holds

So when TestBuilder generate a hold with found=W the test fail.

A question however:
Why did not we have the correct exception displayed somewhere? That
would be much more helpful to find the problem!

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Joy Nelson <joy@bywatersolutions.com>
(cherry picked from commit c405b03dd367adb7c1c274477865a7444f59c9e9)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
t/db_dependent/api/v1/holds.t