]> git.koha-community.org Git - koha.git/commit
Bug 26043: Fix random failure from Holds.t
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Wed, 22 Jul 2020 12:11:03 +0000 (14:11 +0200)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Wed, 5 Aug 2020 15:36:28 +0000 (17:36 +0200)
commit80a611797bf67b263b6b84a6e931833ea336b6a5
tree9022a2484e320bcf57dda086122253941a3fafa3
parent88506d7bb6958a49969f737a8bc41afa8536c554
Bug 26043: Fix random failure from Holds.t

 #   Failed test 'Test ModReserveMinusPriority()'
 #   at t/db_dependent/Holds.t line 202.
 #          got: undef
 #     expected: '1605'
 # Looks like you failed 1 test of 66.

It is coming from Koha::Patron->holds that is ordering by reservedate,
so "sometimes" they are ordered in reverse (at least it's my
understanding of the problem).

Test plan:
Run the test file several times (from 20 to 60x), it must never fail
with this patch

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
t/db_dependent/Holds.t