add requested comment

pull/5512/head
Marcin Niemira 2019-10-03 15:30:31 +10:00
parent eff9be260f
commit e73c104955
No known key found for this signature in database
GPG Key ID: 5395D4A81A3FA475
1 changed files with 2 additions and 0 deletions

View File

@ -127,6 +127,8 @@ func TestCacheBinary(t *testing.T) {
if err != nil {
t.Fatalf("error (%v) during changing permissions of dir %v", err, noWritePermDir)
}
// noPermsDir is directory owned by root. Regular user is not able to write to it.
noPermsDir := "/etc"
if runtime.GOOS == "windows" {
noPermsDir = "C:\\Windows\\System32"