include recomendations after review
MODIFY
MagicalCryptoWallet.Tests/NodeBuilding/CoreNode.cs
MagicalCryptoWallet.Tests/NodeBuilding/CoreNode.cs
@@ -59,7 +59,7 @@ namespace MagicalCryptoWallet.Tests.NodeBuilding
_Builder = builder;
_folder = folder;
_state = CoreNodeState.Stopped;
- CleanFolder().Wait();
+ CleanFolder().GetAwaiter().GetResult();
Directory.CreateDirectory(folder);
DataDir = Path.Combine(folder, "data");
Directory.CreateDirectory(DataDir);
@@ -291,7 +291,7 @@ namespace MagicalCryptoWallet.Tests.NodeBuilding
}
_state = CoreNodeState.Killed;
if (cleanFolder)
- CleanFolder().Wait();
+ CleanFolder().GetAwaiter().GetResult();;
}
}

MODIFY
MagicalCryptoWallet.Tests/RegTests.cs
MagicalCryptoWallet.Tests/RegTests.cs
@@ -36,8 +36,8 @@ namespace MagicalCryptoWallet.Tests
if (Fixture.BackendNodeBuilder == null)
{
Fixture.BackendNodeBuilder = NodeBuilder.CreateAsync().Result;
- Fixture.BackendNodeBuilder.CreateNodeAsync().Wait();
- Fixture.BackendNodeBuilder.StartAllAsync().Wait();
+ Fixture.BackendNodeBuilder.CreateNodeAsync().GetAwaiter().GetResult();;
+ Fixture.BackendNodeBuilder.StartAllAsync().GetAwaiter().GetResult();;
Fixture.BackendRegTestNode = Fixture.BackendNodeBuilder.Nodes[0];
Fixture.BackendRegTestNode.Generate(101);
var rpc = Fixture.BackendRegTestNode.CreateRPCClient();

include recomendations after review