chore: upgrade golangci-lint to v1.46.0 (#1373)

This commit is contained in:
Colin Adler
2022-05-10 16:04:23 -05:00
committed by GitHub
parent e0a7aec228
commit 97a95f1377
18 changed files with 32 additions and 84 deletions

View File

@ -6,12 +6,11 @@ import (
"database/sql"
"testing"
_ "github.com/lib/pq"
"github.com/stretchr/testify/require"
"go.uber.org/goleak"
"github.com/coder/coder/coderd/database/postgres"
_ "github.com/lib/pq"
)
func TestMain(m *testing.M) {
@ -26,9 +25,9 @@ func TestPostgres(t *testing.T) {
return
}
connect, close, err := postgres.Open()
connect, closePg, err := postgres.Open()
require.NoError(t, err)
defer close()
defer closePg()
db, err := sql.Open("postgres", connect)
require.NoError(t, err)
err = db.Ping()