Skip to content

Commit eb41de8

Browse files
authored
Fix flaky routing test (#9505)
1 parent ebb9ad2 commit eb41de8

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/Http/Routing/test/UnitTests/Matching/CandidateSetTest.cs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -325,10 +325,11 @@ public void ExpandEndpoint_ThrowsForDuplicateScore()
325325
var ex = Assert.Throws<InvalidOperationException>(() => candidateSet.ExpandEndpoint(0, Array.Empty<Endpoint>(), comparer));
326326

327327
// Assert
328-
Assert.Equal(@"
329-
Using ExpandEndpoint requires that the replaced endpoint have a unique priority. The following endpoints were found with the same priority:
330-
test: /0
331-
test: /1"
328+
Assert.Equal(@"Using ExpandEndpoint requires that the replaced endpoint have a unique priority. The following endpoints were found with the same priority:" +
329+
Environment.NewLine +
330+
"test: /0" +
331+
Environment.NewLine +
332+
"test: /1"
332333
.TrimStart(), ex.Message);
333334
}
334335

0 commit comments

Comments
 (0)