]> git.koha-community.org Git - koha.git/commit
Bug 24161: Fix failing test (when running slow)
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Wed, 13 May 2020 07:57:40 +0000 (09:57 +0200)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Wed, 13 May 2020 08:07:00 +0000 (09:07 +0100)
commit33a44e438376a567966e80100c1ef4a3c06b215d
tree823073df5b6ec1d2124bd3d0aec8141a6970a3ec
parent5bff65dd7a76f69d3cfb91c5e4806b3618edf3b3
Bug 24161: Fix failing test (when running slow)

We "mocked" the claim date to make sure we were not going to hit this
problem, but it's not done on the correct claim, it should be done on
the last one (so second).

from Koha::Acq::Order->claimed_date

294     my $last_claim = $self->claims->last;
295     return unless $last_claim;
296     return $last_claim->claimed_on;

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
t/db_dependent/Koha/Acquisition/Order.t