diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 04577b9..ed6bc77 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -27,6 +27,8 @@ jobs: with: go-version: ${{ matrix.go-version }} - name: Stand up Postgres ${{ matrix.pg-version }} - run: docker compose up -d postgres:${{ matrix.pg-version }}-alpine + run: docker compose up -d postgres + env: + POSTGRES_VERSION: ${{ matrix.pg-version }} - name: Run tests run: go test -v -race ./... diff --git a/docker-compose.yml b/docker-compose.yml index 257066d..84418df 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,7 +1,6 @@ -version: "3" services: postgres: - image: postgres:${POSTGRES_VERSION:-15} + image: postgres:${POSTGRES_VERSION:-17}-alpine restart: always command: ["-c", "wal_level=logical", "-c", "max_wal_senders=10", "-c", "max_replication_slots=10"] environment: diff --git a/messageV2_test.go b/messageV2_test.go index bebd996..9f98fbc 100644 --- a/messageV2_test.go +++ b/messageV2_test.go @@ -1,9 +1,9 @@ package pglogrepl import ( - "fmt" - "github.com/stretchr/testify/suite" "testing" + + "github.com/stretchr/testify/suite" ) func TestLogicalDecodingMessageV2Suite(t *testing.T) { @@ -123,7 +123,6 @@ func (s *streamCommitSuite) Test() { msg[0] = 'c' bigEndian.PutUint32(msg[1:], xid) - fmt.Printf("%+v\n", msg) msg[5] = flags bigEndian.PutUint64(msg[6:], uint64(commitLSN)) bigEndian.PutUint64(msg[14:], uint64(transactionEndLSN))