Commit 91f04c76 authored by Kubernetes Submit Queue's avatar Kubernetes Submit Queue Committed by GitHub

Merge pull request #32093 from guangxuli/kube_secret_test

Automatic merge from submit-queue the created path should be closed in test case
parents b2d02bd1 f8a86e4c
......@@ -93,6 +93,7 @@ func write(path, contents string, t *testing.T) {
if err != nil {
t.Fatalf("Failed to create %v.", path)
}
defer f.Close()
_, err = f.WriteString(contents)
if err != nil {
t.Fatalf("Failed to write to %v.", path)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment