Skip to content

Improve Akka.Persistence.TestKit#7324

Merged
Aaronontheweb merged 2 commits intoakkadotnet:devfrom
Arkatufus:improve_persistence_testkit
Aug 20, 2024
Merged

Improve Akka.Persistence.TestKit#7324
Aaronontheweb merged 2 commits intoakkadotnet:devfrom
Arkatufus:improve_persistence_testkit

Conversation

@Arkatufus
Copy link
Contributor

Improve Akka.Persistence.TestKit

Changes

  • Allow for external pre-instantiated ActorSystem to be passed in into the constructor
  • Make all of the interceptors API public instead of internal to allow custom interceptor composition
  • Add a new ConnectionInterceptor that intercepts mocked database connection, emulating connection failures
  • Add a new interceptor CancelableDelay that is less prone to strict timing failure, a delay stops immediately when cancelled, lessening dependency on fragile timing issues.

# Conflicts:
#	src/core/Akka.Persistence.TestKit/Properties/AssemblyInfo.cs
@Aaronontheweb Aaronontheweb added akka-persistence akka-testkit Akka.NET Testkit issues labels Aug 20, 2024
@Aaronontheweb Aaronontheweb added this to the 1.5.28 milestone Aug 20, 2024
Copy link
Member

@Aaronontheweb Aaronontheweb left a comment

Choose a reason for hiding this comment

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

LGTM

@Aaronontheweb Aaronontheweb merged commit 19162bd into akkadotnet:dev Aug 20, 2024
This was referenced Oct 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

akka-persistence akka-testkit Akka.NET Testkit issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants