Skip to content

Commit 548f821

Browse files
authored
Remove unreliable check in Rate Limiting test (#114963)
1 parent 3da7264 commit 548f821

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/libraries/System.Diagnostics.DiagnosticSource/tests/DiagnosticSourceEventSourceBridgeTests.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1477,9 +1477,6 @@ public void TestRateLimitingSampler(int maxOperationPerSecond)
14771477
// tolerance of extra sample can be done if the second turn after the loop check sw.ElapsedMilliseconds. 2 extra events (start and stop).
14781478
Assert.True(maxOps * 2 * 3 + 2 >= eventSourceListener.EventCount, $"{eventSourceListener.EventCount} events were recorded, while maxOpPerSecond is {maxOpPerSecond}");
14791479

1480-
// Ensure the minimum number of events is recorded in 3 seconds. We are choosing reasonable small number as it depends on the machine speed.
1481-
Assert.True(eventSourceListener.EventCount >= 6, $"{eventSourceListener.EventCount} events were recorded, while maxOpPerSecond is {maxOpPerSecond}");
1482-
14831480
Thread.Sleep(1000); // ensure new allowance for root creation
14841481
Activity.Current = null;
14851482
using var root = a.Source.StartActivity("root");

0 commit comments

Comments
 (0)