Skip to content

Commit

Permalink
harden ClusterLogVerboseSpec (#6390)
Browse files Browse the repository at this point in the history
Multiple xUnit types can be thrown here, so handle the base `xUnitException` and not `TrueException`.
  • Loading branch information
Aaronontheweb authored Feb 7, 2023
1 parent 2f5aab2 commit 192e9a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/Akka.Cluster.Tests/ClusterLogSpec.cs
Original file line number Diff line number Diff line change
Expand Up @@ -125,9 +125,9 @@ public ClusterLogVerboseDefaultSpec(ITestOutputHelper output)
public async Task A_cluster_must_not_log_verbose_cluster_events_by_default()
{
_cluster.Settings.LogInfoVerbose.ShouldBeFalse();
await JoinAsync(upLogMessage).ShouldThrowWithin<TrueException>(11.Seconds());
await JoinAsync(upLogMessage).ShouldThrowWithin<XunitException>(11.Seconds());
await AwaitUpAsync();
await DownAsync(downLogMessage).ShouldThrowWithin<TrueException>(11.Seconds());
await DownAsync(downLogMessage).ShouldThrowWithin<XunitException>(11.Seconds());
}
}

Expand Down

0 comments on commit 192e9a8

Please sign in to comment.