Skip to content

CI test failure: Microsoft.DotNet.Cli.SdkCheck.Tests.GivenDotnetSdkCheck.WhenABundleIsOutOfSupportItPrintsWarning #29382

Open
@tmat

Description

@tmat

Microsoft.DotNet.Cli.SdkCheck.Tests.GivenDotnetSdkCheck.WhenABundleIsOutOfSupportItPrintsWarning(sdkVersions: [\"1.0.10\", \"1.0.9\", \"2.0.308\", \"2.1.804\", \"3.0.309\", ...], runtimeVersions: [], outOfSupportVersions: [\"1.0.10\", \"1.0.9\", \"2.0.308\", \"2.1.804\"]) failed in

https://dev.azure.com/dnceng-public/public/_build/results?buildId=100792&view=ms.vss-test-web.build-test-results-tab&runId=2158178&resultId=102434&paneView=debug

Error message

Did not expect string ".NET SDKs: Version      Status                                 --------------------------------------------------- 1.0.9        .NET 1.0 is out of support.            1.0.10       .NET 1.0 is out of support.            2.0.308      .NET 2.0 is out of support.            2.1.804      .NET 2.1 is out of support.            3.0.309      .NET 3.0 is going out of support soon. 3.1.401      .NET 3.1 is out of support.             Try out the newest .NET SDK features with .NET 5.0.100.  .NET Runtimes: Name      Version      Status -----------------------------   The latest versions of .NET can be installed from https://aka.ms/dotnet-core-download. For more information about .NET lifecycles, see https://aka.ms/dotnet-core-support. " to contain ".NET 3.1 is out of support.".

Stack trace

   at FluentAssertions.Execution.XUnit2TestFramework.Throw(String message)
   at FluentAssertions.Execution.TestFrameworkProvider.Throw(String message)
   at FluentAssertions.Execution.DefaultAssertionStrategy.HandleFailure(String message)
   at FluentAssertions.Execution.AssertionScope.FailWith(Func`1 failReasonFunc)
   at FluentAssertions.Execution.AssertionScope.FailWith(Func`1 failReasonFunc)
   at FluentAssertions.Execution.AssertionScope.FailWith(String message, Object[] args)
   at FluentAssertions.Primitives.StringAssertions`1.NotContain(String unexpected, String because, Object[] becauseArgs)
   at Microsoft.DotNet.Cli.SdkCheck.Tests.GivenDotnetSdkCheck.WhenABundleIsOutOfSupportItPrintsWarning(String[] sdkVersions, String[] runtimeVersions, String[] outOfSupportVersions) in /_/src/Tests/dotnet-sdk-check.Tests/GivenDotnetSdkCheck.cs:line 159
   at InvokeStub_GivenDotnetSdkCheck.WhenABundleIsOutOfSupportItPrintsWarning(Object, Object, IntPtr*)
   at System.Reflection.MethodInvoker.Invoke(Object obj, IntPtr* args, BindingFlags invokeAttr)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions