summaryrefslogtreecommitdiffstats
path: root/models/graph_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'models/graph_test.go')
-rw-r--r--models/graph_test.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/models/graph_test.go b/models/graph_test.go
index c1f0bc90d9..78bfcb27ec 100644
--- a/models/graph_test.go
+++ b/models/graph_test.go
@@ -17,6 +17,7 @@ func BenchmarkGetCommitGraph(b *testing.B) {
if err != nil {
b.Error("Could not open repository")
}
+ defer currentRepo.Close()
for i := 0; i < b.N; i++ {
graph, err := GetCommitGraph(currentRepo, 1)