client: fix test umask (#8987)

This commit is contained in:
Lars Lehtonen 2020-09-30 05:09:41 -07:00 committed by GitHub
parent 32c6a99ff3
commit 03abe3c890
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1854,7 +1854,7 @@ func TestFS_logsImpl_NoFollow(t *testing.T) {
for i := 0; i < 3; i++ { for i := 0; i < 3; i++ {
logFile := fmt.Sprintf("%s.%s.%d", task, logType, i) logFile := fmt.Sprintf("%s.%s.%d", task, logType, i)
logFilePath := filepath.Join(logDir, logFile) logFilePath := filepath.Join(logDir, logFile)
err := ioutil.WriteFile(logFilePath, expected[i:i+1], 777) err := ioutil.WriteFile(logFilePath, expected[i:i+1], 0777)
if err != nil { if err != nil {
t.Fatalf("Failed to create file: %v", err) t.Fatalf("Failed to create file: %v", err)
} }
@ -1924,7 +1924,7 @@ func TestFS_logsImpl_Follow(t *testing.T) {
writeToFile := func(index int, data []byte) { writeToFile := func(index int, data []byte) {
logFile := fmt.Sprintf("%s.%s.%d", task, logType, index) logFile := fmt.Sprintf("%s.%s.%d", task, logType, index)
logFilePath := filepath.Join(logDir, logFile) logFilePath := filepath.Join(logDir, logFile)
err := ioutil.WriteFile(logFilePath, data, 777) err := ioutil.WriteFile(logFilePath, data, 0777)
if err != nil { if err != nil {
t.Fatalf("Failed to create file: %v", err) t.Fatalf("Failed to create file: %v", err)
} }