Skip to content

Commit

Permalink
Fix connection leak in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
marco6 committed Oct 28, 2024
1 parent d0467e5 commit 907ce6c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/kine/drivers/sqlite/sqlite.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ func NewVariant(ctx context.Context, driverName, dataSourceName string, connecti
if err != nil {
return err
}
defer conn.Close()
return setup(ctx, conn)
}()
if err == nil {
Expand Down

0 comments on commit 907ce6c

Please sign in to comment.