Fix flaky routing test (#9505)
This commit is contained in:
parent
ebb9ad20db
commit
eb41de88a9
|
|
@ -325,10 +325,11 @@ namespace Microsoft.AspNetCore.Routing.Matching
|
||||||
var ex = Assert.Throws<InvalidOperationException>(() => candidateSet.ExpandEndpoint(0, Array.Empty<Endpoint>(), comparer));
|
var ex = Assert.Throws<InvalidOperationException>(() => candidateSet.ExpandEndpoint(0, Array.Empty<Endpoint>(), comparer));
|
||||||
|
|
||||||
// Assert
|
// Assert
|
||||||
Assert.Equal(@"
|
Assert.Equal(@"Using ExpandEndpoint requires that the replaced endpoint have a unique priority. The following endpoints were found with the same priority:" +
|
||||||
Using ExpandEndpoint requires that the replaced endpoint have a unique priority. The following endpoints were found with the same priority:
|
Environment.NewLine +
|
||||||
test: /0
|
"test: /0" +
|
||||||
test: /1"
|
Environment.NewLine +
|
||||||
|
"test: /1"
|
||||||
.TrimStart(), ex.Message);
|
.TrimStart(), ex.Message);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue