Skip to content

Commit

Permalink
fix tests again
Browse files Browse the repository at this point in the history
  • Loading branch information
ryfu-msft committed Nov 14, 2023
1 parent 1750404 commit f7f42ab
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/AppInstallerCLIE2ETests/ResumeCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ public void InstallRequiresRebootForInstall()
var installDir = TestCommon.GetRandomTestDir();
var result = TestCommon.RunAICLICommand("install", $"TestRebootRequired --custom \"/ExitCode 10\" -l {installDir}");
Assert.AreEqual(Constants.ErrorCode.ERROR_INSTALL_REBOOT_REQUIRED_FOR_INSTALL, result.ExitCode);
Assert.True(result.StdOut.Contains("Installation failed. Restart your PC then try again."));
Assert.True(result.StdOut.Contains("Your PC will restart to finish installation."));
Assert.True(TestCommon.VerifyTestExeInstalledAndCleanup(installDir));

int actualCheckpointsCount = Directory.GetDirectories(checkpointsDir).Length;
Expand All @@ -117,8 +117,8 @@ public void InstallRequiresRebootForInstall()

// Resume output should be the same as the install result.
var resumeResult = TestCommon.RunAICLICommand("resume", $"-g {checkpoint.Name}");
Assert.AreNotEqual(Constants.ErrorCode.ERROR_INSTALL_REBOOT_REQUIRED_FOR_INSTALL, resumeResult.ExitCode);
Assert.True(resumeResult.StdOut.Contains("Installation failed. Restart your PC then try again."));
Assert.AreEqual(Constants.ErrorCode.ERROR_INSTALL_REBOOT_REQUIRED_FOR_INSTALL, resumeResult.ExitCode);
Assert.True(resumeResult.StdOut.Contains("Your PC will restart to finish installation."));
Assert.True(TestCommon.VerifyTestExeInstalledAndCleanup(installDir));
}
}
Expand Down

0 comments on commit f7f42ab

Please sign in to comment.