Skip to content

test: run the README cleanup example against PostgreSQL - #3

Merged
lesnik512 merged 1 commit into
mainfrom
test/readme-cleanup-example
Oct 28, 2026
Merged

lesnik512 merged 1 commit into
mainfrom
test/readme-cleanup-example

Conversation

@lesnik512

Copy link
Copy Markdown
Member

The README's CleanupInboxUseCase reuses one db-retry Transaction across the cutoff read and every batch, and no test ran it. This copies the example into a test and runs it against PostgreSQL: five expired markers deleted in batches of two, and one recent marker kept.

It passed on the first run, so the README stays as it is. The "Processing a message" example still isn't run by a test.

@lesnik512
lesnik512 merged commit da4fc86 into main Oct 28, 2026
13 checks passed
@lesnik512
lesnik512 deleted the test/readme-cleanup-example branch October 28, 2026 20:47
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.

1 participant