Skip to content

Commit 6e4de62

Browse files
committed
preventing pass-through when failure rate is 100%
1 parent 0eb0bc4 commit 6e4de62

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

msgraph-chaos-proxy/ChaosEngine.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ private void HandleGraphRequest(SessionEventArgs e) {
202202
}
203203
else {
204204
var failMode = ShouldFail(e.HttpClient.Request);
205-
if (failMode == FailMode.PassThru) {
205+
if (failMode == FailMode.PassThru && _config.FailureRate != 100) {
206206
Console.WriteLine($"\tPassed through {e.HttpClient.Request.RequestUri.AbsolutePath}");
207207
return;
208208
}

0 commit comments

Comments
 (0)