Skip to content

Commit e38d627

Browse files
NachoEchevarriaandrewlock
authored andcommitted
Add log info to time test. Fix instrumentation test.
1 parent 9e3bc3f commit e38d627

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

tracer/test/Datadog.Trace.ClrProfiler.IntegrationTests/InstrumentationTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -500,7 +500,7 @@ public async Task OnPreviewFrameworkInSsi_CallsForwarderWithExpectedTelemetry()
500500
"tags": ["injection_forced:true"]
501501
}]
502502
""";
503-
AssertHasExpectedTelemetry(logFileName, processResult, pointsJson, "success", ".NET 10 or higher", "success_forced");
503+
AssertHasExpectedTelemetry(logFileName, processResult, pointsJson, "success", "Force instrumentation enabled, incompatible runtime, .NET 10 or higher", "success_forced");
504504
}
505505

506506
[SkippableFact]

tracer/test/Datadog.Trace.Tests/TraceContextTests.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,9 @@ public void UtcNow_IsMonotonic()
4141

4242
var t1 = traceContext.Clock.UtcNow;
4343
var t2 = traceContext.Clock.UtcNow;
44+
var substractResult = t2.Subtract(t1);
4445

45-
Assert.True(t2.Subtract(t1) > TimeSpan.Zero);
46+
Assert.True(substractResult > TimeSpan.Zero, $"{t2.ToString()} minus {t1.ToString()} results in {substractResult} which is incorrect.");
4647
}
4748

4849
[Theory]

0 commit comments

Comments
 (0)