Add test for checking non tracking reachability

This commit is contained in:
Sergey Abramchuk 2017-10-05 15:45:54 +03:00
parent cb4490ad0d
commit 31985c57f3

View File

@ -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()