From f190f4ff579f72a5beb1e0fa1c7ad45692909d32 Mon Sep 17 00:00:00 2001 From: Rockford Wei Date: Mon, 30 Jan 2017 17:04:17 -0500 Subject: [PATCH] Testing Modify() --- Tests/PerfectLDAPTests/PerfectLDAPTests.swift | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Tests/PerfectLDAPTests/PerfectLDAPTests.swift b/Tests/PerfectLDAPTests/PerfectLDAPTests.swift index 1294495..92ba94e 100644 --- a/Tests/PerfectLDAPTests/PerfectLDAPTests.swift +++ b/Tests/PerfectLDAPTests/PerfectLDAPTests.swift @@ -109,8 +109,8 @@ class PerfectLDAPTests: XCTestCase { print("=======================================================") print(rs) print("=======================================================") - let mod = expectation(description: "search") - ldap.modify(distinguishedName: testBDN, attributes: ["mail":["emai1@perfect.com", "email2@perfect.com"], "otherMailbox":["email3@perfect.org"]]) { err in + let mod = expectation(description: "modify") + ldap.modify(distinguishedName: testBDN, attributes: ["codePage":["437"]]) { err in mod.fulfill() XCTAssertNil(err) }//end add @@ -127,6 +127,7 @@ class PerfectLDAPTests: XCTestCase { } + static var allTests : [(String, (PerfectLDAPTests) -> () throws -> Void)] { return [ ("testLoginFail", testLoginFail),