Skip to content

Commit

Permalink
Add defer testFile.Close().
Browse files Browse the repository at this point in the history
  • Loading branch information
franciscovalentecastro committed Jan 5, 2024
1 parent 93b40c4 commit e39fe5d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions integration_test/ops_agent_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4716,6 +4716,7 @@ func TestPartialSuccess(t *testing.T) {
if err != nil {
t.Fatal(err)
}
defer testFile.Close()
if err = gce.UploadContent(ctx, logger, vm, testFile, logPath); err != nil {
t.Fatal(err)
}
Expand Down

0 comments on commit e39fe5d

Please sign in to comment.