Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: extend R2DBC EventSourcedEndToEndSpec #1292

Merged
merged 3 commits into from
Jan 13, 2025

Conversation

pvlugter
Copy link
Contributor

Extend the r2dbc EventSourcedEndToEndSpec to other projection types, following #1282 for DynamoDB.

Copy link
Member

@patriknw patriknw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looking good

Thread.sleep(500)
// resume projections again
if (n == (numberOfEvents / 2) + 20)
startProjectionsFactory()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I changed to var projections recently. This would be projections = startProjectionsFactory().
The reason is that later we are stopping the projections, but that is not these new projections.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, missed that when aligning with the dynamodb test. I'll fix both.

startParams,
(projectionId, sourceProvider) =>
R2dbcProjection
.atLeastOnce(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we also have some async variants, worth adding all?
atLeastOnceAsync
groupedWithinAsync

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wasn't sure, but may as well cover all the variants now.

Copy link
Member

@patriknw patriknw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@pvlugter pvlugter merged commit 4a2eabb into main Jan 13, 2025
22 checks passed
@pvlugter pvlugter deleted the r2dbc-EventSourcedEndToEndSpec branch January 13, 2025 22:43
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.

2 participants