diff --git a/pkg/volume/scaleio/sio_util_test.go b/pkg/volume/scaleio/sio_util_test.go index 1d3a35b3648..2de09752f12 100644 --- a/pkg/volume/scaleio/sio_util_test.go +++ b/pkg/volume/scaleio/sio_util_test.go @@ -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)