From 7fdfcf8d28e17d69777e8ce2e9274094f3bdc908 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 7c9deb044..b8ae26150 100644 --- a/cmd/helm/init_test.go +++ b/cmd/helm/init_test.go @@ -215,7 +215,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))