Skip to content

Commit cb4568e

Browse files
committed
fix tests for CI?
1 parent 9028236 commit cb4568e

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

ci/LDKSwift/Tests/LDKSwiftTests/HumanObjectPeerTestInstance.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ public class HumanObjectPeerTestInstance {
330330
if !self.master.use_nio_peer_handler {
331331
return
332332
}
333-
self.tcpSocketHandler = TCPPeerHandler(peerManager: self.peerManager)
333+
self.tcpSocketHandler = self.constructor!.getTCPPeerHandler()
334334
for i in 1...10000 {
335335
let port = UInt16(i)
336336
let bound = self.tcpSocketHandler!.bind(address: "127.0.0.1", port: port)
@@ -707,8 +707,8 @@ public class HumanObjectPeerTestInstance {
707707
// sleep for 5 seconds to ensure sanity
708708
try! await Task.sleep(nanoseconds: 5_000_000_000)
709709

710-
peer1.constructor?.interrupt(tcpPeerHandler: peer1.tcpSocketHandler)
711-
peer2.constructor?.interrupt(tcpPeerHandler: peer2.tcpSocketHandler)
710+
peer1.constructor?.interrupt()
711+
peer2.constructor?.interrupt()
712712
}
713713

714714
}

xcode/DirectBindingsApp/DirectBindingsApp.xcodeproj/project.pbxproj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -729,6 +729,7 @@
729729
07C753F326D9560200081BF8 /* PromiseKit in Frameworks */ = {isa = PBXBuildFile; productRef = 07C753F226D9560200081BF8 /* PromiseKit */; };
730730
28F5174A280E7903009A7D10 /* CombineUtils.swift in Sources */ = {isa = PBXBuildFile; fileRef = 28F51749280E7903009A7D10 /* CombineUtils.swift */; };
731731
2DD1139D4337E24B8A37948F /* PolarIntegrationSample.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2DD1159E9DE3166EE7B79886 /* PolarIntegrationSample.swift */; };
732+
2DD1182C341A00AE1DA7C9E4 /* CombineUtils.swift in Sources */ = {isa = PBXBuildFile; fileRef = 28F51749280E7903009A7D10 /* CombineUtils.swift */; };
732733
2DD11C86114C6827D6E338A2 /* BlockchainObserver.swift in Sources */ = {isa = PBXBuildFile; fileRef = 076D2A6D28039ACB00970AFC /* BlockchainObserver.swift */; };
733734
2DD11F1338488839D8955B7A /* PolarIntegrationTest.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2DD1172C8DF0B244CF69B0FA /* PolarIntegrationTest.swift */; };
734735
2DD11F99CF6E547FA7FB9225 /* RegtestBlockchainManager.swift in Sources */ = {isa = PBXBuildFile; fileRef = 076D2A6B280399F500970AFC /* RegtestBlockchainManager.swift */; };
@@ -2565,6 +2566,7 @@
25652566
2DD11F99CF6E547FA7FB9225 /* RegtestBlockchainManager.swift in Sources */,
25662567
2DD11C86114C6827D6E338A2 /* BlockchainObserver.swift in Sources */,
25672568
2DD11F1338488839D8955B7A /* PolarIntegrationTest.swift in Sources */,
2569+
2DD1182C341A00AE1DA7C9E4 /* CombineUtils.swift in Sources */,
25682570
);
25692571
runOnlyForDeploymentPostprocessing = 0;
25702572
};

0 commit comments

Comments
 (0)