Skip to content

Commit fc48812

Browse files
authored
Fix tests
1 parent 5d23bb6 commit fc48812

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

src/Cli/dotnet/commands/dotnet-tool/update/ToolUpdateLocalCommand.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@ internal class ToolUpdateLocalCommand : CommandBase
2323
private readonly Lazy<ToolInstallLocalCommand> _toolInstallLocalCommand;
2424
private readonly IReporter _reporter;
2525

26-
internal readonly RestoreActionConfig _restoreActionConfig;
27-
2826
public ToolUpdateLocalCommand(
2927
ParseResult parseResult,
3028
IToolPackageDownloader toolPackageDownloader = null,

src/Tests/dotnet.Tests/CommandTests/ToolUpdateGlobalOrToolPathCommandTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ public void WhenPassingRestoreActionConfigOptions()
7676
{
7777
var parseResult = Parser.Instance.Parse($"dotnet tool update -g {_packageId} --ignore-failed-sources");
7878
var toolUpdateCommand = new ToolUpdateGlobalOrToolPathCommand(parseResult);
79-
toolUpdateCommand._restoreActionConfig.IgnoreFailedSources.Should().BeTrue();
79+
toolUpdateCommand._toolInstallGlobalOrToolPathCommand._restoreActionConfig.IgnoreFailedSources.Should().BeTrue();
8080
}
8181

8282
[Fact]

src/Tests/dotnet.Tests/CommandTests/ToolUpdateLocalCommandTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ public void WhenPassingRestoreActionConfigOptions()
118118
{
119119
var parseResult = Parser.Instance.Parse($"dotnet tool update {_packageIdA.ToString()} --ignore-failed-sources");
120120
var command = new ToolUpdateLocalCommand(parseResult);
121-
command._restoreActionConfig.IgnoreFailedSources.Should().BeTrue();
121+
command._toolInstallLocalCommand._restoreActionConfig.IgnoreFailedSources.Should().BeTrue();
122122
}
123123

124124
[Fact]

0 commit comments

Comments
 (0)