From 6f878d92fb2a662d70d8a68c0698e4c32dbe79e4 Mon Sep 17 00:00:00 2001 From: saltbo Date: Sun, 23 Oct 2022 21:51:48 +0800 Subject: [PATCH] fix: update the fsstore_test.go Signed-off-by: saltbo --- pkg/kubelet/kubeletconfig/checkpoint/store/fsstore_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/kubelet/kubeletconfig/checkpoint/store/fsstore_test.go b/pkg/kubelet/kubeletconfig/checkpoint/store/fsstore_test.go index 6ba35a48a28..05944f17c9f 100644 --- a/pkg/kubelet/kubeletconfig/checkpoint/store/fsstore_test.go +++ b/pkg/kubelet/kubeletconfig/checkpoint/store/fsstore_test.go @@ -657,7 +657,7 @@ func mapFromCheckpoint(store *fsStore, uid, resourceVersion string) (map[string] m := map[string]string{} for _, f := range 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) } // read the file contents and build the map