]> 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)
committerJoy Nelson <joy@bywatersolutions.com>
Wed, 1 Apr 2020 22:41:27 +0000 (22:41 +0000)
commitc405b03dd367adb7c1c274477865a7444f59c9e9
treed83fdc8b7fec80f4e16ece6a3a6b4440a8b40325
parent5bf9a83495971a196224f9342394a5b2d065d3e1
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>
t/db_dependent/api/v1/holds.t