Skip to content

Commit 3dfe2ad

Browse files
committed
Fix tests
1 parent 70f17a8 commit 3dfe2ad

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

NBitcoin.TestFramework/NodeBuilder.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,6 @@ public void Sync(CoreNode node, bool keepConnection = false)
396396
rpc.AddNode(node.Endpoint, true);
397397
while (rpc.GetBestBlockHash() != rpc1.GetBestBlockHash())
398398
{
399-
rpc.Generate(1);
400399
Task.Delay(200).GetAwaiter().GetResult();
401400
}
402401
if (!keepConnection)

NBitcoin.Tests/RPCClientTests.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1765,7 +1765,6 @@ public async Task CanGenerateBlocks(RPCWalletType walletType)
17651765

17661766
[Theory]
17671767
[InlineData(PSBTVersion.PSBTv0)]
1768-
[InlineData(PSBTVersion.PSBTv2)]
17691768
public async Task UpdatePSBTInRPCShouldIncludePreviousTX(PSBTVersion version)
17701769
{
17711770
using (var builder = NodeBuilderEx.Create())
@@ -2021,9 +2020,12 @@ public async Task ShouldPerformMultisigProcessingWithCore(string version)
20212020
c.ImportMulti(importMultiObject, false);
20222021
}
20232022

2023+
var funderClient = nodeFunder.CreateRPCClient();
2024+
2025+
var aa = await funderClient.GetBlockchainInfoAsync();
20242026
// pay from funder
20252027
nodeFunder.Generate(103);
2026-
var funderClient = nodeFunder.CreateRPCClient();
2028+
aa = await funderClient.GetBlockchainInfoAsync();
20272029
funderClient.SendToAddress(aMultiP2SH, Money.Coins(40));
20282030
// funderClient.SendToAddress(aMultiP2WSH, Money.Coins(40));
20292031
// funderClient.SendToAddress(aMultiP2SH_P2WSH, Money.Coins(40));

0 commit comments

Comments
 (0)