Closed as duplicate of#116212
Description
Failed in: runtime-coreclr libraries-pgo 20250608.1
Failed tests:
net10.0-linux-Release-arm64-jitosr_stress-(AzureLinux.3.0.ArmArch.Open)Ubuntu.2204.ArmArch.Open@mcr.microsoft.com/dotnet-buildtools/prereqs:azurelinux-3.0-helix-arm64v8
- Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteFactoryTest.CreateCallSite_ThrowsIfTypeHasSingleConstructorWithUnresolvableParameters
net10.0-linux-Release-x64-jitosr_stress-Ubuntu.2204.Amd64.Open
- Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteFactoryTest.CreateCallSite_ThrowsIfTypeHasSingleConstructorWithUnresolvableParameters
net10.0-windows-Release-x64-jitosr_stress-Windows.10.Amd64.Open
- Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteFactoryTest.CreateCallSite_ThrowsIfTypeHasSingleConstructorWithUnresolvableParameters
Error message:
Assert.Throws() Failure: No exception was thrown
Expected: typeof(System.InvalidOperationException)
Stack trace:
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteFactoryTest.CreateCallSite_ThrowsIfTypeHasSingleConstructorWithUnresolvableParameters() in /_/src/libraries/Microsoft.Extensions.DependencyInjection/tests/DI.Tests/ServiceLookup/CallSiteFactoryTest.cs:line 578
at System.RuntimeMethodHandle.InvokeMethod(ObjectHandleOnStack target, Void** arguments, ObjectHandleOnStack sig, BOOL isConstructor, ObjectHandleOnStack result)
at System.RuntimeMethodHandle.InvokeMethod(ObjectHandleOnStack target, Void** arguments, ObjectHandleOnStack sig, BOOL isConstructor, ObjectHandleOnStack result)
at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args) in /_/src/coreclr/System.Private.CoreLib/src/System/Reflection/MethodBaseInvoker.CoreCLR.cs:line 36
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) in /_/src/libraries/System.Private.CoreLib/src/System/Reflection/RuntimeMethodInfo.cs:line 126