8000
Skip to content

It_publishes_the_project_with_a_refs_folder_and_correct_deps_file test failure #53796

8000
@MiYanni

Description

@MiYanni

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.

  • Microsoft.NET.Publish.Tests.GivenThatWeWantToPreserveCompilationContext.It_publishes_the_project_with_a_refs_folder_and_correct_deps_file(appTargetFramework: "net46", libraryTargetFramework: "netstandard1.3", withoutCopyingRefs: False) [FAIL]
  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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0