mirror of
https://github.com/deneraraujo/OpenVPNAdapter.git
synced 2024-10-06 17:22:07 +08:00
Add test for checking non tracking reachability
This commit is contained in:
parent
cb4490ad0d
commit
31985c57f3
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user