diff --git a/t/db_dependent/Koha/Holds.t b/t/db_dependent/Koha/Holds.t index a44ee6ae20..36040cbb3b 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();