]> git.koha-community.org Git - koha.git/commit
Bug 32650: Prevent Koha/Holds.t to fail randomly
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Wed, 18 Jan 2023 14:45:34 +0000 (15:45 +0100)
committerJacob O'Mara <jacob.omara@ptfs-europe.com>
Wed, 25 Jan 2023 14:33:47 +0000 (14:33 +0000)
commitd28f98e5edb2197f46708e908c9ebc27c5b7ce98
tree4163de9c2ea49686b96ac5419c3b189bf8cbce48
parenteb2fbe6dd6bfc69601421773f963af784b4318bb
Bug 32650: Prevent Koha/Holds.t to fail randomly

22:25:51 koha_1       |     #   Failed test 'Items 1, 2, and 5 are available for filling the holds'
22:25:51 koha_1       |     #   at t/db_dependent/Koha/Holds.t line 531.
22:25:51 koha_1       |     #     Structures begin differing at:
22:25:51 koha_1       |     #          $got->[0] = '1000'
22:25:51 koha_1       |     #     $expected->[0] = '996'
22:25:51 koha_1       |     # Looks like you failed 1 test of 6.
22:25:51 koha_1       |
22:25:51 koha_1       | #   Failed test 'get_items_that_can_fill'
22:25:51 koha_1       | #   at t/db_dependent/Koha/Holds.t line 539.

We need to use a numeric sort, or 1000 is before 996...

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
(cherry picked from commit 9d950959bfee9304035ccf2789d2904a7c0b49c0)
Signed-off-by: Jacob O'Mara <jacob.omara@ptfs-europe.com>
t/db_dependent/Koha/Holds.t