Skip to content

Commit

Permalink
Merge pull request #46225 from FengyunPan/fix-missing-close-file
Browse files Browse the repository at this point in the history
Automatic merge from submit-queue (batch tested with PRs 38990, 45781, 46225, 44899, 43663)

Fix missing close file

None
  • Loading branch information
Kubernetes Submit Queue committed May 23, 2017
2 parents 26a0db1 + ae7bf3e commit a31fda9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/volume/scaleio/sio_util_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@ func TestUtilSaveConfig(t *testing.T) {
if err != nil {
t.Fatal("failed to open conf file: ", file)
}
defer file.Close()
dataRcvd := map[string]string{}
if err := gob.NewDecoder(file).Decode(&dataRcvd); err != nil {
t.Fatal(err)
Expand Down

0 comments on commit a31fda9

Please sign in to comment.