Skip to content

Commit c02f643

Browse files
committed
Add UrlRequest import dependency for non-Macs in unit test
1 parent 70dc9d1 commit c02f643

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.github/actions/install-dependencies/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ runs:
3030
run: |
3131
rustup toolchain install nightly-2022-05-13
3232
rustup target add aarch64-apple-darwin aarch64-apple-ios x86_64-apple-ios
33-
rustup component add rust-src --toolchain nightly-x86_64-apple-darwin
33+
rustup component add rust-src --toolchain nightly-2022-05-13-x86_64-apple-darwin
3434
- name: Load Cache
3535
if: ${{ inputs.configureRustNightly == 'true' }}
3636
uses: actions/cache@v3

ci/LDKSwift/Tests/LDKSwiftTests/LDKSwiftTests.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ import LDKHeaders
1111
#endif
1212
import XCTest
1313

14+
#if canImport(FoundationNetworking)
15+
import FoundationNetworking
16+
#endif
17+
1418
class LDKSwiftTests: XCTestCase {
1519

1620
override func setUpWithError() throws {

0 commit comments

Comments
 (0)