Skip to content

Commit

Permalink
Adjust file descriptor to include write permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
jdrews committed May 1, 2023
1 parent 4e4d8d1 commit 5c84b56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tailer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
// writeALine writes a logString line to a specified logFilePath
func writeALine(t *testing.T, logFilePath string, logString string) {
// Write a line to the logFilePath
file, err := os.OpenFile(logFilePath, os.O_CREATE|os.O_APPEND, 0644)
file, err := os.OpenFile(logFilePath, os.O_CREATE|os.O_APPEND|os.O_WRONLY, 0644)
if err != nil {
t.Errorf("failed creating file: %s", err)
}
Expand Down

0 comments on commit 5c84b56

Please sign in to comment.