Merge pull request #32046 from guangxuli/close_readBytesFromFile
Automatic merge from submit-queue close the open file the open file should be close.
This commit is contained in:
@@ -1527,7 +1527,7 @@ func readBytesFromFile(filename string) []byte {
|
||||
if err != nil {
|
||||
framework.Failf(err.Error())
|
||||
}
|
||||
|
||||
defer file.Close()
|
||||
data, err := ioutil.ReadAll(file)
|
||||
if err != nil {
|
||||
framework.Failf(err.Error())
|
||||
|
Reference in New Issue
Block a user