fix: update the fsstore_test.go

Signed-off-by: saltbo <saltbo@foxmail.com>
This commit is contained in:
saltbo 2022-10-23 21:51:48 +08:00
parent cc90e819bc
commit 6f878d92fb
No known key found for this signature in database
GPG Key ID: ED13862C4BCD86D8

View File

@ -657,7 +657,7 @@ func mapFromCheckpoint(store *fsStore, uid, resourceVersion string) (map[string]
m := map[string]string{} m := map[string]string{}
for _, f := range files { for _, f := range files {
// expect no subdirs, only regular files // expect no subdirs, only regular files
if !f.Mode().IsRegular() { if !f.Type().IsRegular() {
return nil, fmt.Errorf("expect only regular files in checkpoint dir %q", uid) return nil, fmt.Errorf("expect only regular files in checkpoint dir %q", uid)
} }
// read the file contents and build the map // read the file contents and build the map