Akka.Tests.Routing.ScatterGatherFirstCompletedSpec.Scatter_gather_router_should_handle_failing_timeouts C# (CSharp) Метод

Scatter_gather_router_should_handle_failing_timeouts() приватный Метод

private Scatter_gather_router_should_handle_failing_timeouts ( ) : Task
Результат Task
        public async Task Scatter_gather_router_should_handle_failing_timeouts()
        {
            var actor1 = Sys.ActorOf(Props.Create(() => new StopActor(50)));

            var paths = new[] { actor1 };
            var routedActor = Sys.ActorOf(new ScatterGatherFirstCompletedGroup(paths, TimeSpan.FromSeconds(3)).Props());

            var exception = await routedActor.Ask<Status.Failure>(0, TimeSpan.FromSeconds(5));

            exception
                .Should()
                .NotBeNull();

            exception.Cause
                .Should()
                .BeOfType<AskTimeoutException>();
        }