From d178a4aad34e44ecc7191557718b59be8315ff9d Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 6 Apr 2022 16:34:51 +0200 Subject: [PATCH] Bug 30432: Fix random failure Signed-off-by: Jonathan Druart --- t/db_dependent/Koha/Holds.t | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/t/db_dependent/Koha/Holds.t b/t/db_dependent/Koha/Holds.t index a44ee6ae20a..36040cbb3b1 100755 --- a/t/db_dependent/Koha/Holds.t +++ b/t/db_dependent/Koha/Holds.t @@ -513,7 +513,7 @@ subtest 'get_items_that_can_fill' => sub { } ); $items = $holds->get_items_that_can_fill; - is_deeply( [ map { $_->itemnumber } $items->as_list ], + is_deeply( [ sort map { $_->itemnumber } $items->as_list ], [ $item_1->itemnumber, $item_2->itemnumber, $item_5->itemnumber ], 'Items 1, 2, and 5 are available for filling the holds' ); my $no_holds = Koha::Holds->new->empty(); -- 2.25.1