From 49907728f9ff41510be3465d5bd4c81abbc11349 Mon Sep 17 00:00:00 2001 From: Guillaume Rousse Date: Mon, 24 Dec 2012 23:43:01 +0100 Subject: [PATCH] no need to sort list before test --- t/inventory/macos/softwares.t | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 ); }