Fix flaky routing test (#9505)

This commit is contained in:
Justin Kotalik 2019-04-18 13:40:43 -07:00 committed by GitHub
parent ebb9ad20db
commit eb41de88a9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 4 deletions

View File

@ -325,10 +325,11 @@ namespace Microsoft.AspNetCore.Routing.Matching
var ex = Assert.Throws<InvalidOperationException>(() => candidateSet.ExpandEndpoint(0, Array.Empty<Endpoint>(), 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);
}