From 4d7084b82d75488f781fb8baeacd913da24b0ebd Mon Sep 17 00:00:00 2001 From: Christopher Stelma Date: Thu, 8 Nov 2018 06:34:13 -0800 Subject: [PATCH] make code match error message abs path is the negative case, probably forgot to invert this one during minor refactoring. --- cmd/helm/init_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/helm/init_test.go b/cmd/helm/init_test.go index 3b547ea1f..c79f736a9 100644 --- a/cmd/helm/init_test.go +++ b/cmd/helm/init_test.go @@ -55,7 +55,7 @@ func TestEnsureHome(t *testing.T) { if err != nil { t.Error(err) } - if !filepath.IsAbs(rr.Cache) { + if filepath.IsAbs(rr.Cache) { t.Errorf("%s stable repo cache path is an absolute path", rr.Cache) } absCache, err := filepath.Abs(filepath.Join(hh.Cache(), rr.Cache))