Skip to content

Commit becd672

Browse files
committed
Debug.Listeners.Clear
1 parent 5d16fe2 commit becd672

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

test/Polly.Core.Tests/Hedging/Controller/HedgingExecutionContextTests.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,10 @@ public HedgingExecutionContextTests()
3636
_resilienceContext = ResilienceContext.Get().Initialize<string>(false);
3737
_resilienceContext.CancellationToken = _cts.Token;
3838
_resilienceContext.Properties.Set(_myKey, "dummy");
39+
40+
// HedgingExecutionContext has some Debug.Assert pieces which trigger failures in Debug mode
41+
// just suppress these
42+
Trace.Listeners.Clear();
3943
}
4044

4145
public void Dispose()

0 commit comments

Comments
 (0)