Skip to content

Commit 46b1a8c

Browse files
Add log info to time test. Fix instrumentation test.
1 parent 5cecce6 commit 46b1a8c

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
@@ -495,7 +495,7 @@ public async Task OnPreviewFrameworkInSsi_CallsForwarderWithExpectedTelemetry()
495495
"tags": ["injection_forced:true"]
496496
}]
497497
""";
498-
AssertHasExpectedTelemetry(logFileName, processResult, pointsJson, "success", ".NET 10 or higher", "success_forced");
498+
AssertHasExpectedTelemetry(logFileName, processResult, pointsJson, "success", "Force instrumentation enabled, incompatible runtime, .NET 10 or higher", "success_forced");
499499
}
500500

501501
[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)