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

Convert null to NoSender. #993

Merged
merged 1 commit into from
May 20, 2015
Merged

Convert null to NoSender. #993

merged 1 commit into from
May 20, 2015

Conversation

rogeralsing
Copy link
Contributor

This PR makes it possible to explicitly pass null as sender to Tell as it is a fairly common mistake and we have no real reason to throw on it.

This PR also fixes some context leakage in the testkit

@@ -110,6 +110,12 @@ private TestKitBase(ITestKitAssertions assertions, ActorSystem system, Config co
{
InternalCurrentActorCellKeeper.Current = (ActorCell)((ActorRefWithCell)testActor).Underlying;
}
else if(!(this is TestProbe))
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is obviously ugly in every possible way. but the testkit currently requires two different behaviors based on type.
(it could be extracted to a virt method, but then again, virt methods from ctors and all that.)

Copy link
Member

Choose a reason for hiding this comment

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

Could you put a //TODO: on this line, letting someone in the future know why it's there?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

there is a //HACK: on the line below already :)

Aaronontheweb added a commit that referenced this pull request May 20, 2015
@Aaronontheweb Aaronontheweb merged commit 452dde1 into akkadotnet:dev May 20, 2015
@rogeralsing rogeralsing deleted the null-means-no branch June 15, 2015 11:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants