diff --git a/test/NuGet.Core.FuncTests/NuGet.Commands.FuncTest/RestoreCommandTests.cs b/test/NuGet.Core.FuncTests/NuGet.Commands.FuncTest/RestoreCommandTests.cs index 96467493073..15ec779a484 100644 --- a/test/NuGet.Core.FuncTests/NuGet.Commands.FuncTest/RestoreCommandTests.cs +++ b/test/NuGet.Core.FuncTests/NuGet.Commands.FuncTest/RestoreCommandTests.cs @@ -3049,7 +3049,7 @@ await SimpleTestPackageUtility.CreateFolderFeedV3Async( Assert.False(result.Success); Assert.Equal(1, logger.ErrorMessages.Count); logger.ErrorMessages.TryDequeue(out var errorMessage); - Assert.True(errorMessage.Contains("platform version could not be inferred")); + Assert.True(errorMessage.Contains("platform version")); var messagesForNU1012 = result.LockFile.LogMessages.Where(m => m.Code == NuGetLogCode.NU1012); Assert.Equal(1, messagesForNU1012.Count()); }