chore: fix test typo

This commit is contained in:
Noah Hsu
2022-07-18 11:37:53 +08:00
parent 303d245e0f
commit e08810a12f
2 changed files with 7 additions and 5 deletions

View File

@ -1,6 +1,7 @@
package db
import (
"github.com/alist-org/alist/v3/internal/errs"
"github.com/alist-org/alist/v3/internal/model"
"github.com/pkg/errors"
"gorm.io/driver/sqlite"
@ -51,7 +52,7 @@ func TestGetNearestMeta1(t *testing.T) {
func TestGetNearestMeta2(t *testing.T) {
meta, err := GetNearestMeta("/c/d/e")
if errors.Cause(err) != ErrMetaNotFound {
if errors.Cause(err) != errs.MetaNotFound {
t.Errorf("unexpected error: %+v", err)
t.Errorf("unexpected meta: %+v", meta)
}