Skip to content

Commit b0fb980

Browse files
committed
Again attempt to make tests deterministic
1 parent bc0648e commit b0fb980

File tree

1 file changed

+1
-1
lines changed
  • crates/bindings-csharp/Codegen.Tests

1 file changed

+1
-1
lines changed

crates/bindings-csharp/Codegen.Tests/Tests.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ static IEnumerable<Diagnostic> GetCompilationErrors(Compilation compilation)
124124
.Emit(Stream.Null)
125125
.Diagnostics.Where(diag => diag.Severity != DiagnosticSeverity.Hidden)
126126
// The order of diagnostics is not predictable, sort them by location & content to make the test deterministic.
127-
.OrderBy(diag => diag.Location.ToString() + diag.GetMessage());
127+
.OrderBy(diag => diag.ToString());
128128
}
129129

130130
[Fact]

0 commit comments

Comments
 (0)