mirror of
https://github.com/deneraraujo/OpenVPNAdapter.git
synced 2026-02-11 00:00:08 +08:00
Add test for checking non tracking reachability
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user