Skip to content

Instantly share code, notes, and snippets.

@christiansparre
Created July 3, 2016 14:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save christiansparre/cc2f8dad959fcc3d82a0233de242fd1a to your computer and use it in GitHub Desktop.
Save christiansparre/cc2f8dad959fcc3d82a0233de242fd1a to your computer and use it in GitHub Desktop.
Sys.Stop(); not working as expected
[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