Skip to content

Commit 7446be0

Browse files
committed
fix
1 parent 6f7c535 commit 7446be0

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

test/dotnet.Tests/CommandTests/Workload/Restore/GivenDotnetWorkloadRestore.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,12 @@ public void ProjectsThatDoNotSupportWorkloadsAreNotInspected()
2525
.WithSource()
2626
.Path;
2727

28-
new DotnetWorkloadCommand(Log, "restore")
28+
new DotnetWorkloadCommand(Log, "restore", "--skip-manifest-update")
2929
.WithWorkingDirectory(projectPath)
3030
.WithEnvironmentVariable("DOTNETSDK_WORKLOAD_METADATA_DIR", metadataDir)
3131
.WithEnvironmentVariable("DOTNET_CLI_HOME", testDirectory)
3232
.WithEnvironmentVariable("DOTNET_NOLOGO", "1")
3333
.WithEnvironmentVariable("DOTNET_SKIP_FIRST_TIME_EXPERIENCE", "1")
34-
.WithArguments("--skip-manifest-update")
3534
.Execute()
3635
.Should()
3736
// if we did try to restore the dcproj in this TestAsset we would fail, so passing means we didn't!
@@ -51,13 +50,12 @@ public void ProjectsThatDoNotSupportWorkloadsAndAreTransitivelyReferencedDoNotBr
5150
.WithSource()
5251
.Path;
5352

54-
new DotnetWorkloadCommand(Log, "restore")
53+
new DotnetWorkloadCommand(Log, "restore", "--skip-manifest-update")
5554
.WithWorkingDirectory(projectPath)
5655
.WithEnvironmentVariable("DOTNETSDK_WORKLOAD_METADATA_DIR", metadataDir)
5756
.WithEnvironmentVariable("DOTNET_CLI_HOME", testDirectory)
5857
.WithEnvironmentVariable("DOTNET_NOLOGO", "1")
5958
.WithEnvironmentVariable("DOTNET_SKIP_FIRST_TIME_EXPERIENCE", "1")
60-
.WithArguments("--skip-manifest-update")
6159
.Execute()
6260
.Should()
6361
// if we did try to restore the esproj in this TestAsset we would fail, so passing means we didn't!

0 commit comments

Comments
 (0)