We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fc359aa commit 9a3941fCopy full SHA for 9a3941f
fastwalk_test.go
@@ -10,6 +10,7 @@ import (
10
"io/fs"
11
"math"
12
"os"
13
+ "os/user"
14
"path/filepath"
15
"reflect"
16
"regexp"
@@ -989,6 +990,9 @@ func TestFastWalk_ErrNotExist(t *testing.T) {
989
990
}
991
992
func TestFastWalk_ErrPermission(t *testing.T) {
993
+ if u, err := user.Current(); err == nil && u.Uid == "0" {
994
+ t.Skip("Skip test as root user")
995
+ }
996
if runtime.GOOS == "windows" {
997
t.Skip("test not supported for Windows")
998
0 commit comments