Skip to content

Commit

Permalink
Debug.Listeners.Clear (#1408)
Browse files Browse the repository at this point in the history
  • Loading branch information
martintmk authored Jul 14, 2023
1 parent 802820b commit 8bb251a
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 8bb251a

Please sign in to comment.