Skip to content

Commit

Permalink
Windows CI Test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
qdraw committed Apr 10, 2024
1 parent 8966d04 commit cef947e
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,15 @@ private static void CleanSetup()
Registry.CurrentUser.DeleteSubKeyTree($"Software\\Classes\\{Extension}", false);
Registry.CurrentUser.DeleteSubKeyTree($"Software\\Classes\\{ProgramId}", false);
}
catch ( IOException )
catch ( IOException exception)
{
// do nothing
Console.WriteLine($"[CleanSetup] Skip due IOException {exception.Message}");
}
catch ( UnauthorizedAccessException exception)
{
Console.WriteLine($"[CleanSetup] Skip due UnauthorizedAccessException {exception.Message}");
}

}

[TestMethod]
Expand Down

0 comments on commit cef947e

Please sign in to comment.