mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-29 06:27:05 +00:00
Merge pull request #32093 from guangxuli/kube_secret_test
Automatic merge from submit-queue the created path should be closed in test case
This commit is contained in:
commit
91f04c765b
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user