Skip to content

Commit 274f866

Browse files
authored
Add Android import for IPAddressNameTests (#217)
Following on #183 and #207, we need to `import Android` in `IPAddressTests.swift` to get `inet_pton` and `in6_addr`. With this addition, tests pass on Android again.
1 parent 608cef1 commit 274f866

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Tests/X509Tests/IPAddressTests.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@
1515
import XCTest
1616
import SwiftASN1
1717
@testable import X509
18+
#if canImport(Android)
19+
import Android
20+
#endif
1821

1922
final class IPAddressNameTests: XCTestCase {
2023
static let fixtures: [(ASN1OctetString, ASN1OctetString, Bool)] = [

0 commit comments

Comments
 (0)