-
Notifications
You must be signed in to change notification settings - Fork 16
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
Fix/44 ActorSystem
lifecycle
#56
Conversation
Cleaned up legacy bits
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed my own changes
namespace Akka.TestKit.NUnit.Tests; | ||
|
||
[TestFixture] | ||
public class Bugfix44Spec : TestKit |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Repro spec for #44
@@ -23,7 +23,6 @@ public class TestKit : TestKitBase, IDisposable | |||
private static readonly NUnitAssertions _assertions = new NUnitAssertions(); | |||
private readonly Config _config; | |||
private readonly string _actorSystemName; | |||
private bool _isFirstRun = true; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No longer needed
@@ -35,8 +34,6 @@ public class TestKit : TestKitBase, IDisposable | |||
public TestKit(ActorSystem system = null) | |||
: base(_assertions, system) | |||
{ | |||
if(system != null) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove code bomb
/// creating and setting up the ActorSystem. | ||
/// </summary> | ||
[SetUp] | ||
public void InitializeActorSystemOnSetUp() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Setup no longer needed now that this can be done from ActorSystem
constructor.
@Aaronontheweb -- any estimate on this being merged/released? |
@mchandschuh I was just waiting for your approval. Now that it's done I can push it any time. |
@Aaronontheweb -- I was expecting a new |
@Aaronontheweb @eaba -- thanks guys! This was successfully integrated! As a note -- any |
Fixes #44
Changes
Removed all of the old hacks we needed to do in order to make the NUnit testkit behave like the xUnit test kit (to provide isolated
ActorSystem
s on each test.)Checklist
For significant changes, please ensure that the following have been completed (delete if not relevant):
cc @mchandschuh