Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Discard duplicate traits
  • Loading branch information
Tyrrrz committed Nov 23, 2025
commit d60f468cd8c89a25bd7d3992e258d6009b594d45
3 changes: 2 additions & 1 deletion GitHubActionsTestLogger/MtpLogger.cs
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,8 @@ CancellationToken cancellationToken
message.TestNode.TryGetSourceLine(),
message
.TestNode.Properties.OfType<TestMetadataProperty>()
.ToDictionary(p => p.Key, p => p.Value)
.DistinctBy(p => p.Key, StringComparer.Ordinal)
.ToDictionary(p => p.Key, p => p.Value, StringComparer.Ordinal)
);

var testResult = new TestResult(
Expand Down
3 changes: 2 additions & 1 deletion GitHubActionsTestLogger/VsTestLogger.cs
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,8 @@ private void OnTestResult(TestResultEventArgs args)
args.Result.TryGetSourceFilePath(),
args.Result.TryGetSourceLine(),
args.Result.Traits.Union(args.Result.TestCase.Traits)
.ToDictionary(t => t.Name, t => t.Value)
.DistinctBy(t => t.Name, StringComparer.Ordinal)
.ToDictionary(t => t.Name, t => t.Value, StringComparer.Ordinal)
);

var testResult = new TestResult(
Expand Down
Loading