diff --git a/agent/proxy/daemon_test.go b/agent/proxy/daemon_test.go index 9ea552299a..80fb9b533e 100644 --- a/agent/proxy/daemon_test.go +++ b/agent/proxy/daemon_test.go @@ -449,6 +449,7 @@ func TestDaemonRestart_pidFile(t *testing.T) { require.NotEmpty(pidRaw) // Delete the file + require.NoError(os.Remove(pidPath)) require.NoError(os.Remove(path)) // File should re-appear because the process is restart