fix fd leaks and failed file removing for pkg client-go

Kubernetes-commit: 73aeed8766c2c42a6cb4fc8632b1b974f4508dde
This commit is contained in:
HirazawaUi
2023-05-03 01:35:16 +08:00
committed by Kubernetes Publisher
parent a9b2f9e9eb
commit 84dc0417b2
5 changed files with 39 additions and 54 deletions

View File

@@ -322,7 +322,7 @@ func TestRequestBody(t *testing.T) {
}
// test error set when failing to read file
f, err := os.CreateTemp("", "test")
f, err := os.CreateTemp("", "")
if err != nil {
t.Fatalf("unable to create temp file")
}