make code match error message

abs path is the negative case, probably forgot to invert this one during minor refactoring.
pull/4955/head
Christopher Stelma 7 years ago committed by Christopher A. Stelma
parent c4f91cb949
commit 4d7084b82d

@ -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))

Loading…
Cancel
Save