This specific test is failing in CI. It seems to be independent of which job/platform is used. I tried running the test locally but it passed for me. But it is consistently failing in the related PR mentioned above.
Error Message:
Expected string to be the same string, but they differ at index 0:
↓ (actual)
"mscorlib.dll"
".NETFramework/v4.6/m…"
↑ (expected).
Stack Trace:
at FluentAssertions.Execution.LateBoundTestFramework.Throw(String message)
at FluentAssertions.Execution.DefaultAssertionStrategy.HandleFailure(String message)
at FluentAssertions.Execution.AssertionChain.FailWith(Func`1 getFailureReason)
at FluentAssertions.Primitives.StringEqualityStrategy.ValidateAgainstMismatch(AssertionChain assertionChain, String subject, String expected)
at FluentAssertions.Primitives.StringAssertions`1.Be(String expected, String because, Object[] becauseArgs)
at Microsoft.NET.Publish.Tests.GivenThatWeWantToPreserveCompilationContext.It_publishes_the_project_with_a_refs_folder_and_correct_deps_file(String appTargetFramework, String libraryTargetFramework, Boolean withoutCopyingRefs) in /_/test/Microsoft.NET.Publish.Tests/GivenThatWeWantToPreserveCompilationContext.cs:line 146
at InvokeStub_GivenThatWeWantToPreserveCompilationContext.It_publishes_the_project_with_a_refs_folder_and_correct_deps_file(Object, Span`1)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
Related: #53788
Summary
This specific test is failing in CI. It seems to be independent of which job/platform is used. I tried running the test locally but it passed for me. But it is consistently failing in the related PR mentioned above.