Fixes exception in CodexDistTests

This commit is contained in:
Ben 2024-06-11 11:33:02 +02:00
parent 74ca512f92
commit 9a46e20b4a
No known key found for this signature in database
GPG Key ID: 541B9D8C9F1426A1
2 changed files with 9 additions and 4 deletions

View File

@ -1,6 +1,4 @@
using System.Diagnostics; namespace Utils
namespace Utils
{ {
public static class Time public static class Time
{ {

View File

@ -139,9 +139,16 @@ namespace CodexTests
private void DeleteBlockRepo(List<ICodexNode> codexNodes) private void DeleteBlockRepo(List<ICodexNode> codexNodes)
{ {
foreach (var node in codexNodes) foreach (var node in codexNodes)
{
try
{ {
node.DeleteRepoFolder(); node.DeleteRepoFolder();
} }
catch (Exception ex)
{
Log($"Failed to delete repo folder for node {node.GetName()} : {ex}");
}
}
} }
} }
} }