diff --git a/test/Microsoft.Azure.SignalR.Tests.Common/VerifiableLoggedTest.cs b/test/Microsoft.Azure.SignalR.Tests.Common/VerifiableLoggedTest.cs index 50487d9a2..233ef5388 100644 --- a/test/Microsoft.Azure.SignalR.Tests.Common/VerifiableLoggedTest.cs +++ b/test/Microsoft.Azure.SignalR.Tests.Common/VerifiableLoggedTest.cs @@ -13,7 +13,7 @@ public class VerifiableLoggedTest(ITestOutputHelper output) : LoggedTest(output) { public static async Task RetryWhenExceptionThrows(Func asyncFunc, int maxCount = 3) { - AssertActualExpectedException last = null; + NotEqualException last = null; int i; for (i = 0; i < maxCount; i++) { @@ -22,7 +22,7 @@ public static async Task RetryWhenExceptionThrows(Func asyncFunc, int maxC await asyncFunc(); break; } - catch (AssertActualExpectedException e) + catch (NotEqualException e) { last = e; continue;