Created
July 3, 2016 14:44
-
-
Save christiansparre/cc2f8dad959fcc3d82a0233de242fd1a to your computer and use it in GitHub Desktop.
Sys.Stop(); not working as expected
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Fact] | |
public void should_terminate_but_does_not() | |
{ | |
var a = CreateTestProbe(); | |
Watch(a); | |
Sys.Stop(a); | |
ExpectTerminated(a); | |
} | |
[Fact] | |
public void does_terminate() | |
{ | |
var a = ActorOf(Props.Create(() => new AnActor())); | |
Watch(a); | |
Sys.Stop(a); | |
ExpectTerminated(a); | |
} | |
public class AnActor : ReceiveActor { } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment