Skip to content

Commit

Permalink
Debug.Listeners.Clear
Browse files Browse the repository at this point in the history
  • Loading branch information
martintmk committed Jul 14, 2023
1 parent 5d16fe2 commit becd672
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ public HedgingExecutionContextTests()
_resilienceContext = ResilienceContext.Get().Initialize<string>(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()
Expand Down

0 comments on commit becd672

Please sign in to comment.