mirror of
https://github.com/optim-enterprises-bv/kubernetes.git
synced 2025-11-02 19:28:16 +00:00
Ensure that we are closing files.
This commit is contained in:
@@ -66,6 +66,7 @@ func readBytesFromFile(t *testing.T, filename string) []byte {
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
defer file.Close()
|
||||
|
||||
data, err := ioutil.ReadAll(file)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user