Skip to content

Commit 1ddfb0f

Browse files
committed
Fix unit test.
1 parent 2d9a4be commit 1ddfb0f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ci/LDKSwift/Tests/LDKSwiftTests/HumanObjectPeerTestInstance.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -591,7 +591,7 @@ public class HumanObjectPeerTestInstance {
591591
peerA.connectBlock(block: fundingBlock, height: fundingBlock.height, expectedMonitorUpdateLength: 0)
592592
peerB.connectBlock(block: fundingBlock, height: fundingBlock.height, expectedMonitorUpdateLength: 0)
593593
for currentPeer in otherPeers {
594-
currentPeer.connectBlock(block: fundingBlock, height: 1, expectedMonitorUpdateLength: 0)
594+
currentPeer.connectBlock(block: fundingBlock, height: fundingBlock.height, expectedMonitorUpdateLength: 0)
595595
}
596596

597597
print("Connecting confirmation blocks…")
@@ -604,6 +604,7 @@ public class HumanObjectPeerTestInstance {
604604
currentBlock.timestamp = UInt32(42 + height)
605605
currentBlock.difficultyTarget = 0
606606
currentBlock.nonce = 0
607+
currentBlock.height = height
607608

608609
peerA.connectBlock(block: currentBlock, height: UInt32(height), expectedMonitorUpdateLength: 0)
609610
peerB.connectBlock(block: currentBlock, height: UInt32(height), expectedMonitorUpdateLength: 0)

0 commit comments

Comments
 (0)