Skip to content

Commit

Permalink
Add verbose on some tests to investigate why they are timing out
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnMcPMS committed Sep 22, 2023
1 parent 1bdc332 commit c0f0c7e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/AppInstallerCLIE2ETests/InstallCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -632,7 +632,7 @@ public void InstallExeWithLatestInstalledWithForce()
public void InstallWithWindowsFeatureDependency_FeatureNotFound()
{
var testDir = TestCommon.GetRandomTestDir();
var installResult = TestCommon.RunAICLICommand("install", $"AppInstallerTest.WindowsFeature -l {testDir}");
var installResult = TestCommon.RunAICLICommand("install", $"AppInstallerTest.WindowsFeature -l {testDir} --verbose");
Assert.AreEqual(Constants.ErrorCode.ERROR_INSTALL_MISSING_DEPENDENCY, installResult.ExitCode);
Assert.True(installResult.StdOut.Contains("The feature [invalidFeature] was not found."));
}
Expand All @@ -644,7 +644,7 @@ public void InstallWithWindowsFeatureDependency_FeatureNotFound()
public void InstallWithWindowsFeatureDependency_Force()
{
var testDir = TestCommon.GetRandomTestDir();
var installResult = TestCommon.RunAICLICommand("install", $"AppInstallerTest.WindowsFeature --silent --force -l {testDir}");
var installResult = TestCommon.RunAICLICommand("install", $"AppInstallerTest.WindowsFeature --silent --force -l {testDir} --verbose");
Assert.AreEqual(Constants.ErrorCode.S_OK, installResult.ExitCode);
Assert.True(installResult.StdOut.Contains("Successfully installed"));
Assert.True(TestCommon.VerifyTestExeInstalledAndCleanup(testDir));
Expand Down
2 changes: 1 addition & 1 deletion src/AppInstallerCLIE2ETests/SearchCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ public void SearchWithInvalidName()
public void SearchReturnsMultiple()
{
// Search Microsoft should return multiple
var result = TestCommon.RunAICLICommand("search", "AppInstallerTest");
var result = TestCommon.RunAICLICommand("search", "AppInstallerTest --verbose");
Assert.AreEqual(Constants.ErrorCode.S_OK, result.ExitCode);
Assert.True(result.StdOut.Contains("AppInstallerTest.TestExeInstaller"));
Assert.True(result.StdOut.Contains("AppInstallerTest.TestBurnInstaller"));
Expand Down

0 comments on commit c0f0c7e

Please sign in to comment.