diff --git a/test/Polly.Core.Tests/Hedging/Controller/HedgingExecutionContextTests.cs b/test/Polly.Core.Tests/Hedging/Controller/HedgingExecutionContextTests.cs index 437c3c1bec5..b9c4f546c22 100644 --- a/test/Polly.Core.Tests/Hedging/Controller/HedgingExecutionContextTests.cs +++ b/test/Polly.Core.Tests/Hedging/Controller/HedgingExecutionContextTests.cs @@ -36,6 +36,10 @@ public HedgingExecutionContextTests() _resilienceContext = ResilienceContext.Get().Initialize(false); _resilienceContext.CancellationToken = _cts.Token; _resilienceContext.Properties.Set(_myKey, "dummy"); + + // HedgingExecutionContext has some Debug.Assert pieces which trigger failures in Debug mode + // just suppress these + Trace.Listeners.Clear(); } public void Dispose()