Skip to content

Commit

Permalink
Testing Modify()
Browse files Browse the repository at this point in the history
  • Loading branch information
RockfordWei committed Jan 30, 2017
1 parent 3917f10 commit f190f4f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Tests/PerfectLDAPTests/PerfectLDAPTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -127,6 +127,7 @@ class PerfectLDAPTests: XCTestCase {

}


static var allTests : [(String, (PerfectLDAPTests) -> () throws -> Void)] {
return [
("testLoginFail", testLoginFail),
Expand Down

0 comments on commit f190f4f

Please sign in to comment.