From 52cde984e585555b7a250f31ec107d641c38b83c Mon Sep 17 00:00:00 2001 From: Aleksey Myasnikov Date: Sat, 30 Dec 2023 15:55:18 +0300 Subject: [PATCH] sqlclosecheck enabled --- .golangci.yml | 1 - retry/sql_test.go | 3 +++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.golangci.yml b/.golangci.yml index b8dd86722..226683382 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -253,7 +253,6 @@ linters: - protogetter - revive - scopelint - - sqlclosecheck - structcheck - tagalign - tagliatelle diff --git a/retry/sql_test.go b/retry/sql_test.go index 6b91367ab..2fd0f197e 100644 --- a/retry/sql_test.go +++ b/retry/sql_test.go @@ -191,6 +191,9 @@ func TestDoTx(t *testing.T) { if err != nil { return err } + defer func() { + _ = rows.Close() + }() return rows.Err() }, WithIdempotent(bool(idempotentType)),