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

[Akka.TestKit] TestKitBase should take arbitrary ActorSystem without throwing #6092

Conversation

Arkatufus
Copy link
Contributor

Fixes

Problem when passing arbitrary ActorSystem into a TestKit, it would throw a ConfigurationException because the TestKit HOCON configuration was not injected into the ActorSystem

Changes

  • Injects TestKitBase._defaultConfig if the TestKit did not create the ActorSystem being tested
  • Add unit tests

@Aaronontheweb
Copy link
Member

@Arkatufus does this also need to be ported to v1.4?

@Arkatufus
Copy link
Contributor Author

It will be, yes

@Aaronontheweb Aaronontheweb merged commit 015de37 into akkadotnet:dev Sep 13, 2022
@Aaronontheweb Aaronontheweb added the akka-testkit Akka.NET Testkit issues label Sep 13, 2022
@Aaronontheweb Aaronontheweb added this to the 1.5.0 milestone Sep 13, 2022
Arkatufus added a commit to Arkatufus/akka.net that referenced this pull request Sep 13, 2022
Aaronontheweb pushed a commit that referenced this pull request Sep 14, 2022
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants