Skip to content

Commit

Permalink
Fix ActorTelemetrySpecs pool router unit test (#6376)
Browse files Browse the repository at this point in the history
Co-authored-by: Aaron Stannard <aaron@petabridge.com>
  • Loading branch information
Arkatufus and Aaronontheweb authored Jan 30, 2023
1 parent 7cee0ed commit a455019
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/core/Akka.Tests/Actor/ActorTelemetrySpecs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -283,8 +283,7 @@ await AwaitAssertAsync(async () =>
// assert that actor start count is still 10
Assert.Equal(12, telemetry.ActorCreated);

// bug due to https://github.com/akkadotnet/akka.net/issues/6295 - all routees and the router start each time
Assert.Equal(110, telemetry.ActorRestarted);
Assert.Equal(10, telemetry.ActorRestarted);
// assert no stops recorded
Assert.Equal(0, telemetry.ActorStopped);
}, RemainingOrDefault);
Expand All @@ -296,7 +295,7 @@ await AwaitAssertAsync(async () =>
var telemetry = await subscriber.Ask<TelemetrySubscriber.GetTelemetry>(TelemetrySubscriber.GetTelemetryRequest.Instance);
// assert that actor start count is still 10
Assert.Equal(12, telemetry.ActorCreated);
Assert.Equal(110, telemetry.ActorRestarted);
Assert.Equal(10, telemetry.ActorRestarted);
Assert.Equal(11, telemetry.ActorStopped);
}, RemainingOrDefault);
}
Expand Down

0 comments on commit a455019

Please sign in to comment.