From 23601612c5088a321d6205336cd0754a59cb7dc3 Mon Sep 17 00:00:00 2001 From: Noah Falk Date: Wed, 4 Aug 2021 04:12:44 -0700 Subject: [PATCH] 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. --- .../System.Diagnostics.DiagnosticSource/tests/MetricEventSourceTests.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libraries/System.Diagnostics.DiagnosticSource/tests/MetricEventSourceTests.cs b/src/libraries/System.Diagnostics.DiagnosticSource/tests/MetricEventSourceTests.cs index cc846b5..1f3a8d1 100644 --- a/src/libraries/System.Diagnostics.DiagnosticSource/tests/MetricEventSourceTests.cs +++ b/src/libraries/System.Diagnostics.DiagnosticSource/tests/MetricEventSourceTests.cs @@ -16,7 +16,7 @@ namespace System.Diagnostics.Metrics.Tests public class MetricEventSourceTests { ITestOutputHelper _output; - const double IntervalSecs = 1; + const double IntervalSecs = 5; static readonly TimeSpan s_waitForEventTimeout = TimeSpan.FromSeconds(60); public MetricEventSourceTests(ITestOutputHelper output) -- 2.7.4