Skip to content

Commit f46dbf8

Browse files
committed
Close Pool in TestPoolPrepareConn
1 parent d3503ea commit f46dbf8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

sqlitex/pool_test.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,11 @@ func TestPoolPrepareConn(t *testing.T) {
297297
if err != nil {
298298
t.Fatal(err)
299299
}
300+
defer func() {
301+
if err := pool.Close(); err != nil {
302+
t.Error("Close:", err)
303+
}
304+
}()
300305

301306
conn := pool.Get(context.Background())
302307
if conn == nil {

0 commit comments

Comments
 (0)