dotnet / dotnet/sdk

It_publishes_the_project_with_a_refs_folder_and_correct_deps_file test failure

Open
#53,796 0 comments 0 reactions 0 assignees View on GitHub
Test Debt
Dominant language
C#
Stars
3.2k
Forks
1.3k
PR merge metrics
PR metrics pending

Description

Related: https://github.com/dotnet/sdk/pull/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)
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.