AzureAD / azure-activedirectory-identitymodel-extensions-for-dotnet

IdentityModel extensions for .Net
MIT License
1.06k stars 401 forks source link

Flaky test in Microsoft.IdentityModel.Protocols.SignedHttpRequest.Tests #3035

Closed iNinja closed 4 days ago

iNinja commented 4 days ago

The following test: https://github.com/AzureAD/azure-activedirectory-identitymodel-extensions-for-dotnet/blob/d38c8902709205893e1156c4e0737aa995ec2e0f/test/Microsoft.IdentityModel.Protocols.SignedHttpRequest.Tests/PopKeyResolvingTests.cs#L809, appears to be failing quite regularly as of lately.

The test itself is making an HTTP request to http://www.contoso.com, which redirects to microsoft.com, and from the test results, it seems that the request sometimes takes over 10 seconds, causing it to be cancelled and failing the test.