diff --git a/pkg/volume/volume_linux_test.go b/pkg/volume/volume_linux_test.go index 38c3b5b3c7c..a4078879ab4 100644 --- a/pkg/volume/volume_linux_test.go +++ b/pkg/volume/volume_linux_test.go @@ -342,7 +342,7 @@ func verifyDirectoryPermission(path string, readonly bool) bool { func TestSetVolumeOwnershipOwner(t *testing.T) { fsGroup := int64(3000) - currentUid := os.Getuid() + currentUid := os.Geteuid() if currentUid != 0 { t.Skip("running as non-root") }