Skip to content

Commit 014e34c

Browse files
committed
close connection
1 parent 8c85695 commit 014e34c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

benchmark_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ func BenchmarkRoundtripText(b *testing.B) {
1616
if err != nil {
1717
b.Fatalf("crashed")
1818
}
19+
defer db.Close()
1920
var result string
2021
for i := 0; i < b.N; i++ {
2122
length := 16 + i%(4*b.N)
@@ -46,6 +47,7 @@ func BenchmarkRoundtripPrepared(b *testing.B) {
4647
if err != nil {
4748
b.Fatalf("crashed")
4849
}
50+
defer db.Close()
4951
var result string
5052
stmt, err := db.Prepare("SELECT ?")
5153
if err != nil {

0 commit comments

Comments
 (0)