Skip to content

test: add postgres idempotency store integration coverage - #797

Merged
thlpkee20-wq merged 1 commit into
Stellabill:mainfrom
devfoma:test/devfoma-postgres-idempotency-771
Aug 29, 2026
Merged

thlpkee20-wq merged 1 commit into
Stellabill:mainfrom
devfoma:test/devfoma-postgres-idempotency-771

Conversation

@devfoma

@devfoma devfoma commented Aug 29, 2026

Copy link
Copy Markdown

Summary

  • add build-tagged Postgres testcontainer coverage for PostgresIdempotencyStore
  • cover concurrent GetOrInsert, TTL reuse, payload hash mismatch, and cancelled-context rollback behavior
  • apply only the idempotency table migration inside the test setup

Closes #771

Tests

  • gofmt -w internal/middleware/idempotency_store_integration_test.go
  • go test ./internal/middleware (blocked: upstream go.sum is missing github.com/klauspost/compress@v1.15.9 go.mod entry required through github.com/segmentio/kafka-go)

@drips-wave

drips-wave Bot commented Aug 29, 2026

Copy link
Copy Markdown

@devfoma Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add integration tests for PostgresIdempotencyStore using a real Postgres container

3 participants