From 6f464191ffcca26d65c158c37f21216cee8aa227 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Fri, 8 Nov 2019 10:28:01 +0100 Subject: [PATCH] Bug 23994: Fix random failure from AdditionalFields.t (U18) t/db_dependent/Koha/Objects/Mixin/AdditionalFields.t .. 1/12 # Failed test '->additional_field_values should return the correct values' # at t/db_dependent/Koha/Objects/Mixin/AdditionalFields.t line 82. # Structures begin differing at: # $got->[0]{value} = 'bar value for basket2' # $expected->[0]{value} = 'foo value for basket2' # Looks like you failed 1 test of 12. We do not really know why, but the values are not returned in the order they are stored in DB. Fixing this random failure for now at test level. Signed-off-by: Martin Renvoize --- t/db_dependent/Koha/Objects/Mixin/AdditionalFields.t | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/t/db_dependent/Koha/Objects/Mixin/AdditionalFields.t b/t/db_dependent/Koha/Objects/Mixin/AdditionalFields.t index d0925cfa7b..e7e97c14f1 100755 --- a/t/db_dependent/Koha/Objects/Mixin/AdditionalFields.t +++ b/t/db_dependent/Koha/Objects/Mixin/AdditionalFields.t @@ -65,7 +65,7 @@ is_deeply( record_id => $_->{record_id}, value => $_->{value}, } - } @{ $additional_fields->unblessed } + } sort{ $a->{id} <=> $b->{id} } @{ $additional_fields->unblessed } ], [ { -- 2.20.1