diff --git a/test/NuGet.Core.Tests/NuGet.Commands.Test/RestoreCommandTests/RestoreCommandTests.cs b/test/NuGet.Core.Tests/NuGet.Commands.Test/RestoreCommandTests/RestoreCommandTests.cs index 561eaa4de1d..825dbddd42f 100644 --- a/test/NuGet.Core.Tests/NuGet.Commands.Test/RestoreCommandTests/RestoreCommandTests.cs +++ b/test/NuGet.Core.Tests/NuGet.Commands.Test/RestoreCommandTests/RestoreCommandTests.cs @@ -3191,7 +3191,7 @@ public async Task ExecuteAsync_TransitiveDependenciesFromNonRootLibraries_AreIgn } [Fact] - public async Task ExecuteAsync_WithConditionalProjectAndPackageReferences() + public async Task ExecuteAsync_WithConditionalProjectAndPackageReferences_SelectsPackageWhereProjectIsNotAppropriate() { // Arrange using var context = new SourceCacheContext(); @@ -3253,7 +3253,6 @@ await SimpleTestPackageUtility.CreateFolderFeedV3Async(pathContext.PackageSource systemMemory, systemNumericsVector); - var logger = new TestLogger(); var request = ProjectTestHelpers.CreateRestoreRequest(pathContext, logger, mainPackageSpec, systemNumericsVectorPackageSpec);