Skip to content

Commit fc2be2d

Browse files
committed
minor corrections I spotted
1 parent cdfd317 commit fc2be2d

File tree

4 files changed

+2
-5
lines changed

4 files changed

+2
-5
lines changed

tracer/build/_build/Build.Utilities.cs

+1
Original file line numberDiff line numberDiff line change
@@ -323,6 +323,7 @@ partial class Build
323323
Target PrintSnapshotsDiff => _ => _
324324
.Description("Prints snapshots differences from the current tests")
325325
.AssuredAfterFailure()
326+
.OnlyWhenStatic(() => IsServerBuild)
326327
.Executes(() =>
327328
{
328329
var snapshotsDirectory = TestsDirectory / "snapshots";

tracer/src/Datadog.Trace/ClrProfiler/AutoInstrumentation/AdoNet/ReaderCloseIntegration.cs

-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
using System;
99
using System.ComponentModel;
1010
using Datadog.Trace.ClrProfiler.CallTarget;
11-
using Datadog.Trace.Configuration;
1211
using Datadog.Trace.Iast;
1312
using Datadog.Trace.Vendors.Serilog;
1413

tracer/src/Datadog.Trace/Iast/IastModule.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -932,7 +932,7 @@ public bool AddDbValue(object instance, string? column, string value)
932932
if (context is not null)
933933
{
934934
context.AddDbValue(column, value);
935-
return false;
935+
return true;
936936
}
937937

938938
return false;

tracer/test/Datadog.Trace.Security.IntegrationTests/IAST/AspNetCore5IastDbTests.cs

-3
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ public AspNetCore5IastDbTests(AspNetCoreTestFixture fixture, ITestOutputHelper o
2323

2424
[SkippableTheory]
2525
[Trait("Category", "ArmUnsupported")]
26-
[Trait("RunOnWindows", "True")]
2726
[InlineData("System.Data.SQLite")]
2827
[InlineData("Microsoft.Data.Sqlite")]
2928
[InlineData("System.Data.SqlClient")]
@@ -64,7 +63,6 @@ await VerifyHelper.VerifySpans(spansFiltered, settings)
6463

6564
[SkippableTheory]
6665
[Trait("Category", "ArmUnsupported")]
67-
[Trait("RunOnWindows", "True")]
6866
[InlineData("System.Data.SQLite")]
6967
[InlineData("Microsoft.Data.Sqlite")]
7068
[InlineData("System.Data.SqlClient")]
@@ -101,7 +99,6 @@ await VerifyHelper.VerifySpans(spansFiltered, settings)
10199

102100
[SkippableTheory]
103101
[Trait("Category", "ArmUnsupported")]
104-
[Trait("RunOnWindows", "True")]
105102
[InlineData("System.Data.SQLite")]
106103
[InlineData("Microsoft.Data.Sqlite")]
107104
[InlineData("System.Data.SqlClient")]

0 commit comments

Comments
 (0)