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
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
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

package akka.projection.dynamodb

import java.lang
import java.util.UUID
import java.util.concurrent.CompletionException
import java.util.concurrent.ConcurrentHashMap
Expand Down Expand Up @@ -323,7 +322,7 @@ class EventSourcedEndToEndSpec

private var processedEventsPerProjection: Map[ProjectionId, ConcurrentHashMap[String, java.lang.Boolean]] = Map.empty

private def processedEvents(projectionId: ProjectionId): ConcurrentHashMap[String, lang.Boolean] = {
private def processedEvents(projectionId: ProjectionId): ConcurrentHashMap[String, java.lang.Boolean] = {
processedEventsPerProjection.get(projectionId) match {
case None =>
val processedEvents = new ConcurrentHashMap[String, java.lang.Boolean]
Expand Down Expand Up @@ -492,7 +491,7 @@ class EventSourcedEndToEndSpec
Thread.sleep(1500)
}

val projections = startProjectionsFactory()
var projections = startProjectionsFactory()

// give them some time to start before writing more events
Thread.sleep(200)
Expand All @@ -518,7 +517,7 @@ class EventSourcedEndToEndSpec

// resume projections again
if (n == (numberOfEvents / 2) + 20)
startProjectionsFactory()
projections = startProjectionsFactory()

if (n % 10 == 0)
Thread.sleep(50)
Expand Down
Loading