From a07edab393cf6eb43e41108a3f4125229680133b Mon Sep 17 00:00:00 2001 From: Marty Tippin <120425148+tippmar-nr@users.noreply.github.com> Date: Tue, 7 Jan 2025 10:16:11 -0600 Subject: [PATCH] test: Fix unit tests broken after NUnit update --- .../Core.UnitTest/DistributedTracing/TracingStateTests.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/Agent/UnitTests/Core.UnitTest/DistributedTracing/TracingStateTests.cs b/tests/Agent/UnitTests/Core.UnitTest/DistributedTracing/TracingStateTests.cs index 8ff4072723..04fde3c5c8 100644 --- a/tests/Agent/UnitTests/Core.UnitTest/DistributedTracing/TracingStateTests.cs +++ b/tests/Agent/UnitTests/Core.UnitTest/DistributedTracing/TracingStateTests.cs @@ -64,7 +64,7 @@ public void AcceptDistributedTraceHeadersHydratesValidNewRelicPayload(string hea Assert.That(tracingState.Priority, Is.EqualTo(Priority)); Assert.That(tracingState.Sampled, Is.EqualTo(Sampled)); Assert.That(tracingState.TransactionId, Is.EqualTo(TransactionId)); - Assert.That(tracingState.Timestamp, Is.Not.EqualTo(default), $"Timestamp should not be {(DateTime)default}"); + Assert.That(tracingState.Timestamp, Is.Not.EqualTo(default(DateTime)), $"Timestamp should not be {(DateTime)default}"); Assert.That(tracingState.TransportDuration, Is.GreaterThan(TimeSpan.Zero), $"TransportDuration should not be Zero"); }); } @@ -222,7 +222,7 @@ public void AcceptDistributedTraceHeadersHydratesValidW3CTraceContext() Assert.That(tracingState.Sampled, Is.EqualTo(Sampled)); Assert.That(tracingState.TransactionId, Is.EqualTo(TransactionId)); Assert.That(tracingState.ParentId, Is.EqualTo(ParentId)); - Assert.That(tracingState.Timestamp, Is.Not.EqualTo(default), $"Timestamp should not be {(DateTime)default}"); + Assert.That(tracingState.Timestamp, Is.Not.EqualTo(default(DateTime)), $"Timestamp should not be {(DateTime)default}"); Assert.That(tracingState.TransportDuration, Is.GreaterThan(TimeSpan.Zero), $"TransportDuration should not be Zero"); }); }