Skip to content

Commit 4151adf

Browse files
authored
Add Android imports for some new tests in #3308 that require it (#3334)
My Android CI [just broke because it couldn't find these newly used C symbols in the NIO tests](https://github.com/finagolfin/swift-android-sdk/actions/runs/16768316992/job/47477878652#step:19:242), this patch [fixed it again](https://github.com/finagolfin/swift-android-sdk/actions/runs/16787226279/job/47540691932). Unsure why this only affects Android, likely the module leaks postulated before.
1 parent 1c30f0f commit 4151adf

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

Tests/NIOEmbeddedTests/AsyncTestingChannelTests.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ import XCTest
1818

1919
@testable import NIOEmbedded
2020

21+
#if canImport(Android)
22+
import Android
23+
#endif
24+
2125
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
2226
class AsyncTestingChannelTests: XCTestCase {
2327
func testSingleHandlerInit() async throws {

Tests/NIOEmbeddedTests/EmbeddedChannelTest.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ import XCTest
1919

2020
@testable import NIOEmbedded
2121

22+
#if canImport(Android)
23+
import Android
24+
#endif
25+
2226
final class ChannelLifecycleHandler: ChannelInboundHandler, Sendable {
2327
public typealias InboundIn = Any
2428

0 commit comments

Comments
 (0)