From 97920170708330d83fd8675e07fe58b2720235bc Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 25 Mar 2020 13:50:45 +0100 Subject: [PATCH] Bug 24964: Prevent random failures sorting by borrowernumber Signed-off-by: Fridolin Somers Signed-off-by: Kyle M Hall --- t/db_dependent/Utils/Datatables_Members.t | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/t/db_dependent/Utils/Datatables_Members.t b/t/db_dependent/Utils/Datatables_Members.t index 85bebcd0fc..c91c69aaa0 100644 --- a/t/db_dependent/Utils/Datatables_Members.t +++ b/t/db_dependent/Utils/Datatables_Members.t @@ -541,7 +541,7 @@ subtest 'Search with permissions' => sub { is( $search_results->{iTotalDisplayRecords}, 3, "We find 3 patrons with suggestions_manage permission" ); is_deeply( - [ map { $_->{borrowernumber} } @{ $search_results->{patrons} } ], + [ sort map { $_->{borrowernumber} } @{ $search_results->{patrons} } ], [ $superlibrarian->borrowernumber, $librarian_with_full_permission->borrowernumber, -- 2.21.1 (Apple Git-122.3)