fix: update file permission mode in log watcher test for consistency
This commit is contained in:
@@ -465,7 +465,7 @@ func TestLogWatcher_ReadLoop_EOFRetry(t *testing.T) {
|
||||
time.Sleep(200 * time.Millisecond)
|
||||
|
||||
// Now append a log entry (simulates new data after EOF)
|
||||
file, err = os.OpenFile(logPath, os.O_APPEND|os.O_WRONLY, 0644)
|
||||
file, err = os.OpenFile(logPath, os.O_APPEND|os.O_WRONLY, 0o644)
|
||||
require.NoError(t, err)
|
||||
logEntry := `{"level":"info","ts":1702406400.123,"logger":"http.log.access","msg":"handled request","request":{"remote_ip":"192.168.1.1","method":"GET","uri":"/test","host":"example.com","headers":{}},"status":200,"duration":0.001,"size":100}`
|
||||
_, err = file.WriteString(logEntry + "\n")
|
||||
|
||||
Reference in New Issue
Block a user