fix(helm): fix broken unit test

I recently added a test to check the sorting of search results.
Unfortunately, the test didn't actually sort the results (_sigh_), so
it was failing occasionally on map ordering.

This adds the sort function that is supposed to be tested.

Closes #1925
pull/1926/head
Matt Butcher 8 years ago
parent 9abc419b0b
commit 257f12095f
No known key found for this signature in database
GPG Key ID: DCD5F5E5EF32C345

@ -139,6 +139,7 @@ func TestAddRepo_Sort(t *testing.T) {
if err != nil {
t.Fatal(err)
}
SortScore(sr)
ch := sr[0]
expect := "1.2.3"

Loading…
Cancel
Save