diff --git a/t/inventory/macos/softwares.t b/t/inventory/macos/softwares.t index 0dabe26094..8ec180e2ba 100755 --- a/t/inventory/macos/softwares.t +++ b/t/inventory/macos/softwares.t @@ -2461,8 +2461,8 @@ foreach my $test (keys %tests) { my $file = "resources/macos/system_profiler/$test.SPApplicationsDataType"; my $softwares = FusionInventory::Agent::Task::Inventory::Input::MacOS::Softwares::_getSoftwaresList(file => $file); cmp_deeply( - [ sort { $a->{NAME} cmp $b->{NAME} } @$softwares ], - [ sort { $a->{NAME} cmp $b->{NAME} } @{$tests{$test}} ], + $softwares, + $tests{$test}, $test ); }