mirror of
https://github.com/deneraraujo/OpenVPNAdapter.git
synced 2024-10-06 09:12:08 +08:00
Run these test only on macOS
This commit is contained in:
parent
dd0e2f809d
commit
f95da0256a
@ -7,7 +7,11 @@
|
|||||||
//
|
//
|
||||||
|
|
||||||
import XCTest
|
import XCTest
|
||||||
|
|
||||||
|
#if os(macOS)
|
||||||
import CoreWLAN
|
import CoreWLAN
|
||||||
|
#endif
|
||||||
|
|
||||||
@testable import OpenVPNAdapter
|
@testable import OpenVPNAdapter
|
||||||
|
|
||||||
class OpenVPNReachabilityTests: XCTestCase {
|
class OpenVPNReachabilityTests: XCTestCase {
|
||||||
@ -22,6 +26,7 @@ class OpenVPNReachabilityTests: XCTestCase {
|
|||||||
super.tearDown()
|
super.tearDown()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if os(macOS)
|
||||||
func testReachability() {
|
func testReachability() {
|
||||||
let wifiClient = CWWiFiClient.shared()
|
let wifiClient = CWWiFiClient.shared()
|
||||||
guard let interface = wifiClient.interface() else {
|
guard let interface = wifiClient.interface() else {
|
||||||
@ -62,4 +67,5 @@ class OpenVPNReachabilityTests: XCTestCase {
|
|||||||
waitForExpectations(timeout: 30.0, handler: nil)
|
waitForExpectations(timeout: 30.0, handler: nil)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user