]> 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)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Fri, 6 Mar 2020 09:58:18 +0000 (09:58 +0000)
commit7d23692511c4203736f63aa56d66492d9fdfaeef
tree0cb64c0637cb327286378d78b83cf2ea7ffb0810
parent3aa52a4bf6e1fe7d94504f1eca384d4a4836d4ee
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>
t/db_dependent/api/v1/holds.t