Skip to content

Commit

Permalink
Benchmark: Ensure file gets closed
Browse files Browse the repository at this point in the history
  • Loading branch information
panchoh committed Nov 8, 2018
1 parent a787b2e commit 0c2786a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/riot.go
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,7 @@ func drawChart(m string, a *axis) {

req := fmt.Sprint(numRequests)
file, _ := os.Create("results/graph-" + m + "-" + req + ".png")
defer file.Close()
_ = graph.Render(chart.PNG, file)

}
Expand Down

0 comments on commit 0c2786a

Please sign in to comment.