Skip to content

Conversation

schdooz
Copy link

@schdooz schdooz commented Jun 2, 2025

Unset ActorCellKeepingSynchronizationContext in CallingThreadDispatcher before running actor's mailbox. Also remove ActorCellKeepingSynchronizationContext.AsyncCache property.

Fixes #

Changes

Please provide a brief description of the changes here.

Checklist

For significant changes, please ensure that the following have been completed (delete if not relevant):

Latest dev Benchmarks

Include data from the relevant benchmark prior to this change here.

This PR's Benchmarks

Include data from after this change here.

markdBC added 2 commits June 2, 2025 14:21
…er before running actor's mailbox. Also remove ActorCellKeepingSynchronizationContext.AsyncCache property.
@Aaronontheweb Aaronontheweb added the akka-testkit Akka.NET Testkit issues label Jun 4, 2025
@Aaronontheweb Aaronontheweb added this to the 1.5.43 milestone Jun 4, 2025
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.

So this is actually a pretty important bug fix for ensuring that parallel tests run correctly with the Akka.NET TestKit and I'm pretty sure this is the underlying issue that impacts the Akka.Hosting.TestKit here: akkadotnet/Akka.Hosting#458

@Aaronontheweb Aaronontheweb merged commit 821d39b into akkadotnet:dev Jun 4, 2025
9 of 11 checks passed
@schdooz schdooz deleted the calling-thread-dispatcher-sync-context-fix branch June 4, 2025 16:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
akka-testkit Akka.NET Testkit issues critical
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants