Skip to content

Commit eba0294

Browse files
committed
fix bitcoin test for CI
1 parent 3f38241 commit eba0294

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ci/LDKSwift/Tests/LDKSwiftTests/bitcoin/BitcoinTests.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ public class BitcoinTests: XCTestCase {
9797
XCTAssertEqual(blockSerialization, [2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 42, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 255, 255, 255, 255, 0, 255, 255, 255, 255, 1, 160, 134, 1, 0, 0, 0, 0, 0, 34, 0, 32, 214, 232, 96, 182, 226, 231, 42, 33, 219, 246, 121, 242, 58, 123, 110, 124, 118, 63, 70, 117, 109, 247, 0, 58, 172, 198, 127, 254, 216, 194, 41, 14, 1, 1, 1, 0, 0, 0, 0])
9898
}
9999

100+
#if !os(Linux)
100101
@available(iOS 15.0, *)
101102
func testRpcCalls() async throws {
102103
let username = ProcessInfo.processInfo.environment["BITCOIN_REGTEST_RPC_USERNAME"] ?? "polaruser" // "alice"
@@ -207,5 +208,6 @@ public class BitcoinTests: XCTestCase {
207208
XCTAssertEqual(listener.blocksLost, 4)
208209
}
209210
}
211+
#endif
210212

211213
}

0 commit comments

Comments
 (0)