16 references to CountAllowedRetries
Microsoft.Extensions.Http.Resilience.Tests (16)
Internal\RetryBudgetTests.cs (16)
29CountAllowedRetries(budget, 100).Should().Be(100); 51CountAllowedRetries(budget, requests * 2).Should().Be(expectedRetries); 63CountAllowedRetries(budget, 10).Should().Be(1); 83CountAllowedRetries(budget, 5).Should().Be(5); 96CountAllowedRetries(budget, 20).Should().Be(10); 119CountAllowedRetries(budget, 100).Should().Be(9); 127CountAllowedRetries(budget, 20).Should().Be(10); 133CountAllowedRetries(budget, 20).Should().Be(2); 141CountAllowedRetries(budget, 20).Should().Be(10); 146CountAllowedRetries(budget, 20).Should().Be(1); 159CountAllowedRetries(budget, 20).Should().Be(10); 167CountAllowedRetries(budget, 20).Should().Be(1); 200CountAllowedRetries(budget, 20).Should().Be(10); 222CountAllowedRetries(budget, 20).Should().Be(10); 243CountAllowedRetries(budget, Threads * RequestsPerThread).Should().Be(Threads * RequestsPerThread / 10); 259Interlocked.Add(ref allowed, CountAllowedRetries(budget, AttemptsPerThread));