Fix MetricsEventSource tests (#56654)
authorNoah Falk <noahfalk@users.noreply.github.com>
Wed, 4 Aug 2021 11:12:44 +0000 (04:12 -0700)
committerGitHub <noreply@github.com>
Wed, 4 Aug 2021 11:12:44 +0000 (04:12 -0700)
commit23601612c5088a321d6205336cd0754a59cb7dc3
tree36c5600dfaa2d36ad55e420157bb41c190fd5664
parent7c8f5fbee22030e69ca69615a157597cc035e854
Fix MetricsEventSource tests (#56654)

Fixes #55313

The metrics test has to collect different events that
update counters in a specific interval of time. Previously
those intervals were 1 second long but ARM64 appears to
run slowly enough that some of the events didn't complete
until 2 seconds had passed.

I increased the intervals to 5 seconds each. We could go
longer to reduce the risk further, but I am trying not to
make the tests take overly long.
src/libraries/System.Diagnostics.DiagnosticSource/tests/MetricEventSourceTests.cs