Fix get/set settings test

This commit is contained in:
Sergey Abramchuk 2019-11-03 11:13:43 +03:00
parent c3ed67b67d
commit 76e5488aa1

View File

@ -70,9 +70,10 @@ class OpenVPNConfigurationTests: XCTestCase {
return
}
let equals = originalSettings.elementsEqual(returnedSettings) { (first, second) -> Bool in
first.key == second.key && first.value == second.value
let equals = originalSettings.allSatisfy { (key, value) in
returnedSettings[key] == value
}
XCTAssert(equals)
configuration.settings = [:]