Skip to content

Commit

Permalink
Add Android import for IPAddressNameTests (#217)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
marcprux authored Jan 8, 2025
1 parent 608cef1 commit 274f866
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Tests/X509Tests/IPAddressTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
import XCTest
import SwiftASN1
@testable import X509
#if canImport(Android)
import Android
#endif

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

0 comments on commit 274f866

Please sign in to comment.