From 1edd6a52b474b45960f1156a7dd7ac5cf0d06fab Mon Sep 17 00:00:00 2001 From: Brian Robbins Date: Mon, 10 Sep 2018 15:50:27 -0700 Subject: [PATCH] Fix intermitted RuntimeEventSource test. Commit migrated from https://github.com/dotnet/coreclr/commit/bb2d7a396fddb0c1e1e2bd6e6a7e0bf70ba96f4f --- .../tests/src/tracing/runtimeeventsource/RuntimeEventSourceTest.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/coreclr/tests/src/tracing/runtimeeventsource/RuntimeEventSourceTest.cs b/src/coreclr/tests/src/tracing/runtimeeventsource/RuntimeEventSourceTest.cs index 1d39bd7..85ece93 100644 --- a/src/coreclr/tests/src/tracing/runtimeeventsource/RuntimeEventSourceTest.cs +++ b/src/coreclr/tests/src/tracing/runtimeeventsource/RuntimeEventSourceTest.cs @@ -101,7 +101,7 @@ namespace Tracing.Tests Console.WriteLine($"TimeStamp: {eventData.TimeStamp.ToLocalTime()}"); Console.WriteLine($"LocalTime: {DateTime.Now}"); Console.WriteLine($"Difference: {DateTime.UtcNow - eventData.TimeStamp}"); - Assert.True("eventData.TimeStamp < DateTime.UtcNow", eventData.TimeStamp < DateTime.UtcNow); + Assert.True("eventData.TimeStamp <= DateTime.UtcNow", eventData.TimeStamp <= DateTime.UtcNow); for (int i = 0; i < eventData.Payload.Count; i++) { string payloadString = eventData.Payload[i] != null ? eventData.Payload[i].ToString() : string.Empty; -- 2.7.4