From f95da0256ab51c23251121e822627db1ed11875f Mon Sep 17 00:00:00 2001 From: Sergey Abramchuk Date: Tue, 18 Aug 2020 09:54:27 +0300 Subject: [PATCH] Run these test only on macOS --- Tests/OpenVPNAdapter/OpenVPNReachabilityTests.swift | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Tests/OpenVPNAdapter/OpenVPNReachabilityTests.swift b/Tests/OpenVPNAdapter/OpenVPNReachabilityTests.swift index 58ef15a..15e6731 100644 --- a/Tests/OpenVPNAdapter/OpenVPNReachabilityTests.swift +++ b/Tests/OpenVPNAdapter/OpenVPNReachabilityTests.swift @@ -7,7 +7,11 @@ // import XCTest + +#if os(macOS) import CoreWLAN +#endif + @testable import OpenVPNAdapter class OpenVPNReachabilityTests: XCTestCase { @@ -22,6 +26,7 @@ class OpenVPNReachabilityTests: XCTestCase { super.tearDown() } + #if os(macOS) func testReachability() { let wifiClient = CWWiFiClient.shared() guard let interface = wifiClient.interface() else { @@ -62,4 +67,5 @@ class OpenVPNReachabilityTests: XCTestCase { waitForExpectations(timeout: 30.0, handler: nil) } + #endif }