From 84c99e508c835a9b9d44bbde9558496d3583256c Mon Sep 17 00:00:00 2001 From: Oleksandr Redko Date: Mon, 9 Dec 2024 18:51:13 +0200 Subject: [PATCH] tests: removing of dlvbin is not needed (#3875) --- cmd/dlv/dlv_test.go | 2 -- service/test/integration2_test.go | 1 - 2 files changed, 3 deletions(-) diff --git a/cmd/dlv/dlv_test.go b/cmd/dlv/dlv_test.go index 50a506ed..633b31ea 100644 --- a/cmd/dlv/dlv_test.go +++ b/cmd/dlv/dlv_test.go @@ -60,7 +60,6 @@ func TestBuild(t *testing.T) { const listenAddr = "127.0.0.1:40573" dlvbin := protest.GetDlvBinary(t) - defer os.Remove(dlvbin) fixtures := protest.FindFixturesDir() @@ -1421,7 +1420,6 @@ func TestUnixDomainSocket(t *testing.T) { listenPath := filepath.Join(tmpdir, "delve_test") dlvbin := protest.GetDlvBinary(t) - defer os.Remove(dlvbin) fixtures := protest.FindFixturesDir() diff --git a/service/test/integration2_test.go b/service/test/integration2_test.go index 8a6c87b0..aafc5b45 100644 --- a/service/test/integration2_test.go +++ b/service/test/integration2_test.go @@ -3169,7 +3169,6 @@ func TestGuessSubstitutePath(t *testing.T) { defer os.Setenv("GOFLAGS", oldgoflags) dlvbin := protest.GetDlvBinary(t) - defer os.Remove(dlvbin) listener, clientConn := service.ListenerPipe() defer listener.Close()