Skip to content

Test UpdateAllReinstall_WithPackageReferenceProject_WarnsAsync constantly fail #12899

Closed
NuGet/NuGet.Client
#7403

Description

@heng-liu

This Apex test is currently skipped for IPC errors.
But after fixing IPC errors in test runs, it failed constantly 10 out of 10 times.
The error message is

Expected boolean to be True because Update-Package -Reinstall
The -Reinstall parameter does not apply to PackageReference based projects `TestProject'.
Executing nuget actions took 0.02 ms
Time Elapsed: 00:00:00.0487588
PM> , but found False.

The stack trace is:

 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.BooleanAssertions`1.Be(Boolean expected, String because, Object[] becauseArgs)
   at NuGet.Tests.Apex.NuGetConsoleTestCase.<UpdateAllReinstall_WithPackageReferenceProject_WarnsAsync>d__14.MoveNext() in D:\a\_work\1\s\test\NuGet.Tests.Apex\NuGet.Tests.Apex\NuGetEndToEndTests\NuGetConsoleTestCase.cs:line 547
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

The standard output is:

[test] info: Creating test context
[test] info: Creating solution
[test] info: Adding project
[test] info: Saving solution
[test] info: Building solution
[test] info: GetConsole
[test] info: EnsurePackageManagerConsoleIsOpen
[test] info: GetPackageManagerConsole
[test] info: GetConsole complete
[test] info: Test complete, closing solution.
[test] info: Package Manager Console contents:  Update-Package -Reinstall
The `-Reinstall` parameter does not apply to PackageReference based projects `TestProject'.
Executing nuget actions took 0.03 ms
Time Elapsed: 00:00:00.0486887
PM> 
[test] info: Package Manager Output Window Pane contents:  Restored C:\Users\TestUser\AppData\Local\Temp\NuGetTestFolder\a8fb82b7\9ba11c30\solution\TestProject\TestProject.csproj (in 16 ms).
Time Elapsed: 00:00:00.0252250
========== Finished ==========
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Priority:2Product:VS.PMConsoleType:Test

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions