Skip to content

Commit

Permalink
reset settings file for error command
Browse files Browse the repository at this point in the history
  • Loading branch information
ryfu-msft committed Nov 20, 2024
1 parent cb107a2 commit 75da7d9
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions src/AppInstallerCLIE2ETests/ErrorCommand.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// -----------------------------------------------------------------------------
// -----------------------------------------------------------------------------
// <copyright file="ErrorCommand.cs" company="Microsoft Corporation">
// Copyright (c) Microsoft Corporation. Licensed under the MIT License.
// </copyright>
Expand All @@ -14,6 +14,15 @@ namespace AppInstallerCLIE2ETests
/// </summary>
public class ErrorCommand
{
/// <summary>
/// Reset settings file to avoid affecting output from error command.
/// </summary>
[OneTimeSetUp]
public void OneTimeSetup()
{
WinGetSettingsHelper.InitializeWingetSettings();
}

/// <summary>
/// Tests 0.
/// </summary>
Expand Down Expand Up @@ -127,4 +136,4 @@ public void String()
Assert.True(result.StdOut.Contains("APPINSTALLER_CLI_ERROR_UNSUPPORTED_RESTSOURCE"));
}
}
}
}

0 comments on commit 75da7d9

Please sign in to comment.