make code match error message

abs path is the negative case, probably forgot to invert this one during minor refactoring.
pull/3647/head
Christopher Stelma 7 years ago committed by GitHub
parent d357b0d0d0
commit 7fdfcf8d28
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -215,7 +215,7 @@ func TestEnsureHome(t *testing.T) {
if err != nil { if err != nil {
t.Error(err) 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) t.Errorf("%s stable repo cache path is an absolute path", rr.Cache)
} }
absCache, err := filepath.Abs(filepath.Join(hh.Cache(), rr.Cache)) absCache, err := filepath.Abs(filepath.Join(hh.Cache(), rr.Cache))

Loading…
Cancel
Save