From 257f12095f84278307bd128aec8c357572f9f73c Mon Sep 17 00:00:00 2001
From: Matt Butcher <technosophos@gmail.com>
Date: Tue, 7 Feb 2017 18:22:58 -0700
Subject: [PATCH] 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
---
 cmd/helm/search/search_test.go | 1 +
 1 file changed, 1 insertion(+)

diff --git a/cmd/helm/search/search_test.go b/cmd/helm/search/search_test.go
index 5f09f5876..db1e83a74 100644
--- a/cmd/helm/search/search_test.go
+++ b/cmd/helm/search/search_test.go
@@ -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"
-- 
GitLab