Simplify TryKillAsync
MODIFY
WalletWasabi.Tests/NodeBuilding/CoreNode.cs
WalletWasabi.Tests/NodeBuilding/CoreNode.cs
@@ -135,20 +135,17 @@ namespace WalletWasabi.Tests.NodeBuilding
try
{
using (await KillerLock.LockAsync())
- {
- try
{
await RpcClient.StopAsync();
using var timeout = new CancellationTokenSource(20000);
await Process.WaitForExitAsync(timeout.Token);
+ await IoHelpers.DeleteRecursivelyWithMagicDustAsync(DataDir);
}
- catch (Exception)
- { }
}
- await IoHelpers.DeleteRecursivelyWithMagicDustAsync(DataDir);
+ catch (Exception ex)
+ {
+ Logging.Logger.LogWarning(ex);
}
- catch
- { }
}
}
}

Simplify TryKillAsync