Skip to content

Commit

Permalink
ok, first one ok
Browse files Browse the repository at this point in the history
  • Loading branch information
ggnaegi committed Oct 30, 2023
1 parent 272390a commit 2e4a673
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/Ocelot.UnitTests/Polly/PollyQoSProviderTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public async Task should_throw_and_before_delay_should_not_allow_requests()
await Assert.ThrowsAsync<BrokenCircuitException<HttpResponseMessage>>(async () =>
await circuitBreaker.CircuitBreakerAsyncPolicy.ExecuteAsync(() => Task.FromResult(response)));

await Task.Delay(100);
await Task.Delay(101);

await Assert.ThrowsAsync<BrokenCircuitException<HttpResponseMessage>>(async () =>
await circuitBreaker.CircuitBreakerAsyncPolicy.ExecuteAsync(() => Task.FromResult(response)));
Expand Down

0 comments on commit 2e4a673

Please sign in to comment.