mirror of
https://github.com/coder/coder.git
synced 2025-07-03 16:13:58 +00:00
chore: upgrade golangci-lint to v1.46.0 (#1373)
This commit is contained in:
@ -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()
|
||||
|
Reference in New Issue
Block a user