diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 189082f..0332b06 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -44,7 +44,7 @@ jobs: # change the gate out from under a green PR. - name: golangci-lint run: | - go install github.com/golangci/golangci-lint/v2/cmd/golangci-lint@v2.13.2 + go install github.com/golangci/golangci-lint/v2/cmd/golangci-lint@v2.14.0 "$(go env GOPATH)/bin/golangci-lint" run ./... # A security-positioned tool must scan its own dependency tree. - name: govulncheck diff --git a/go.mod b/go.mod index e723abb..4698468 100644 --- a/go.mod +++ b/go.mod @@ -2,7 +2,7 @@ module github.com/pgrundev/pgbot go 1.27 -toolchain go1.27.1 +toolchain go1.27.2 require ( github.com/BurntSushi/toml v1.6.0 diff --git a/internal/collect/replident_integration_test.go b/internal/collect/replident_integration_test.go index 2a42a2d..5f522bd 100644 --- a/internal/collect/replident_integration_test.go +++ b/internal/collect/replident_integration_test.go @@ -6,11 +6,11 @@ import ( "testing" "time" - "github.com/jackc/pgx/v5" "github.com/pgrundev/pgbot/internal/collect" "github.com/pgrundev/pgbot/internal/conn" "github.com/pgrundev/pgbot/internal/findings" "github.com/pgrundev/pgbot/internal/model" + "github.com/pgrundev/pggo" ) // A publication over a table with no primary key is accepted by Postgres and only @@ -25,11 +25,11 @@ func TestIntegration_replicaIdentityMissing(t *testing.T) { ro := dsn(t) ctx, cancel := context.WithTimeout(context.Background(), 60*time.Second) defer cancel() - admin, err := pgx.Connect(ctx, su) + admin, err := pggo.Connect(ctx, su) if err != nil { t.Fatalf("admin connect: %v", err) } - t.Cleanup(func() { admin.Close(context.Background()) }) + t.Cleanup(func() { admin.Close() }) cleanup := func() { _, _ = admin.Exec(context.Background(), `DROP PUBLICATION IF EXISTS pgbot_it_pub`) @@ -37,7 +37,7 @@ func TestIntegration_replicaIdentityMissing(t *testing.T) { } cleanup() t.Cleanup(cleanup) - if _, err := admin.Exec(ctx, ` + if _, err := admin.SimpleQuery(ctx, ` CREATE TABLE public.pgbot_it_nopk (id bigint, note text); INSERT INTO public.pgbot_it_nopk VALUES (1, 'a'); CREATE PUBLICATION pgbot_it_pub FOR TABLE public.pgbot_it_nopk`); err != nil {