From eb41de88a90bf81cdc0912b7b4ba1736c04c387a Mon Sep 17 00:00:00 2001 From: Justin Kotalik Date: Thu, 18 Apr 2019 13:40:43 -0700 Subject: [PATCH] Fix flaky routing test (#9505) --- .../Routing/test/UnitTests/Matching/CandidateSetTest.cs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/Http/Routing/test/UnitTests/Matching/CandidateSetTest.cs b/src/Http/Routing/test/UnitTests/Matching/CandidateSetTest.cs index dd14f7caeb..3f957bfbe0 100644 --- a/src/Http/Routing/test/UnitTests/Matching/CandidateSetTest.cs +++ b/src/Http/Routing/test/UnitTests/Matching/CandidateSetTest.cs @@ -325,10 +325,11 @@ namespace Microsoft.AspNetCore.Routing.Matching var ex = Assert.Throws(() => candidateSet.ExpandEndpoint(0, Array.Empty(), comparer)); // Assert - Assert.Equal(@" -Using ExpandEndpoint requires that the replaced endpoint have a unique priority. The following endpoints were found with the same priority: -test: /0 -test: /1" + Assert.Equal(@"Using ExpandEndpoint requires that the replaced endpoint have a unique priority. The following endpoints were found with the same priority:" + + Environment.NewLine + + "test: /0" + + Environment.NewLine + + "test: /1" .TrimStart(), ex.Message); }