Skip to content

Commit b6b1c58

Browse files
committed
Try to fix test in CI
1 parent 78a0509 commit b6b1c58

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/Microsoft.DotNet.PackageInstall.Tests/ToolPackageDownloaderTests.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -353,6 +353,9 @@ public void GivenARelativeSourcePathInstallSucceeds(bool testMockBehaviorIsInSyn
353353
[InlineData(true)]
354354
public void GivenAUriSourceInstallSucceeds(bool testMockBehaviorIsInSync)
355355
{
356+
// CI seems to be getting an old version of the global.tool.console.demo package which targets .NET Core 2.1. This may fix that
357+
ToolBuilder.RemovePackageFromGlobalPackages(Log, TestPackageId.ToString(), TestPackageVersion);
358+
356359
var source = GetTestLocalFeedPath();
357360

358361
var (store, storeQuery, downloader, uninstaller, reporter, fileSystem) = Setup(

0 commit comments

Comments
 (0)