Remove unused condition.
MODIFY
WalletWasabi.Tests/NodeBuilding/CoreNode.cs
WalletWasabi.Tests/NodeBuilding/CoreNode.cs
@@ -161,7 +161,7 @@ namespace WalletWasabi.Tests.NodeBuilding
private readonly AsyncLock KillerLock = new AsyncLock();
- public async Task TryKillAsync(bool cleanFolder = true)
+ public async Task TryKillAsync()
{
try
{
@@ -180,11 +180,8 @@ namespace WalletWasabi.Tests.NodeBuilding
State = CoreNodeState.Killed;
}
- if (cleanFolder)
- {
await IoHelpers.DeleteRecursivelyWithMagicDustAsync(Folder);
}
- }
catch
{ }
}

MODIFY
WalletWasabi.Tests/XunitConfiguration/RegTestFixture.cs
WalletWasabi.Tests/XunitConfiguration/RegTestFixture.cs
@@ -111,7 +111,7 @@ namespace WalletWasabi.Tests.XunitConfiguration
BackendHost?.StopAsync().GetAwaiter().GetResult();
BackendHost?.Dispose();
- BackendRegTestNode?.TryKillAsync(cleanFolder: true).GetAwaiter().GetResult();
+ BackendRegTestNode?.TryKillAsync().GetAwaiter().GetResult();
BackendNodeBuilder?.Dispose();
}
}

Remove unused condition.