Skip to content

Commit

Permalink
Fix test in Debug
Browse files Browse the repository at this point in the history
Fix test failure when running in Debug instead of Release caused by `Microsoft.VisualStudio.TestPlatform.TestHost.DebugAssertException` when `Debug.Assert()` fires.
  • Loading branch information
martincostello committed Jun 24, 2023
1 parent a4223ae commit 9fb7dab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Polly.Core/Utils/DisposeHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ public static async ValueTask TryDisposeSafeAsync<T>(T value, bool isSynchronous
}
}
}
catch (Exception e)
catch (Exception)
{
Debug.Assert(false, e.ToString());
// Swallow any exception
}
}
}

0 comments on commit 9fb7dab

Please sign in to comment.