diff --git a/OpenVPN Adapter Tests/OpenVPNReachabilityTests.swift b/OpenVPN Adapter Tests/OpenVPNReachabilityTests.swift index 5f86e59..58ef15a 100644 --- a/OpenVPN Adapter Tests/OpenVPNReachabilityTests.swift +++ b/OpenVPN Adapter Tests/OpenVPNReachabilityTests.swift @@ -29,6 +29,19 @@ class OpenVPNReachabilityTests: XCTestCase { return } + XCTAssert(interface.powerOn()) + + let reachability = OpenVPNReachability() + XCTAssert(reachability.reachabilityStatus == .reachableViaWiFi) + } + + func testReachabilityTracking() { + let wifiClient = CWWiFiClient.shared() + guard let interface = wifiClient.interface() else { + XCTFail() + return + } + let reachabilityExpectation = expectation(description: "me.ss-abramchuk.openvpn-adapter.reachability") let reachability = OpenVPNReachability()