diff --git a/backend/internal/services/log_watcher_test.go b/backend/internal/services/log_watcher_test.go index 2ce314bb..e2eee2e5 100644 --- a/backend/internal/services/log_watcher_test.go +++ b/backend/internal/services/log_watcher_test.go @@ -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")