mirror of https://github.com/k3s-io/k3s
Merge pull request #32093 from guangxuli/kube_secret_test
Automatic merge from submit-queue the created path should be closed in test casepull/6/head
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