Skip to content

Commit

Permalink
Update testing-actor-systems.md (#6207)
Browse files Browse the repository at this point in the history
Invalid c# syntax in example
  • Loading branch information
tjaart committed Oct 21, 2022
1 parent ec2d4ba commit bf4e7b4
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions docs/articles/actors/testing-actor-systems.md
Expand Up @@ -89,12 +89,13 @@ It should be noted that if the last message-receiving assertion of the block is

```csharp
var worker = ActorOf<Worker>();
Within(200.Milliseconds()) {
worker.Tell("some work");
ExpectMsg("Some Result");
ExpectNoMsg(); //will block for the rest of the 200ms
Thead.Sleep(300); //will NOT make this block fail
}
Within(200.Milliseconds(), () =>
{
worker.Tell("some work");
ExpectMsg("Some Result");
ExpectNoMsg(); //will block for the rest of the 200ms
Thead.Sleep(300); //will NOT make this block fail
});
```

## Accounting for Slow Test System
Expand Down

0 comments on commit bf4e7b4

Please sign in to comment.