Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 4 additions & 4 deletions internal/collect/replident_integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -25,19 +25,19 @@ 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`)
_, _ = admin.Exec(context.Background(), `DROP TABLE IF EXISTS public.pgbot_it_nopk`)
}
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 {
Expand Down
Loading