Skip to content

Commit 541b69e

Browse files
committed
test: update case
1 parent b8543e5 commit 541b69e

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

LeanCloudTests/IMConversationTestCase.swift

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1831,6 +1831,8 @@ class IMConversationTestCase: RTMBaseTestCase {
18311831
})
18321832
}
18331833

1834+
delay()
1835+
18341836
expecting { (exp) in
18351837
let convB = clientB.convCollection.values.first
18361838
XCTAssertNil(convB?.memberInfoTable)
@@ -1842,6 +1844,17 @@ class IMConversationTestCase: RTMBaseTestCase {
18421844
})
18431845
}
18441846

1847+
expecting { (exp) in
1848+
convA?.fetchMemberInfoTable(completion: { (result) in
1849+
XCTAssertTrue(Thread.isMainThread)
1850+
XCTAssertTrue(result.isSuccess)
1851+
XCTAssertNil(result.error)
1852+
XCTAssertNotNil(convA?.memberInfoTable)
1853+
XCTAssertEqual(convA?.memberInfoTable?.count, 1)
1854+
exp.fulfill()
1855+
})
1856+
}
1857+
18451858
multiExpecting(expectations: { () -> [XCTestExpectation] in
18461859
let exp = self.expectation(description: "change member role to member")
18471860
exp.expectedFulfillmentCount = 2

0 commit comments

Comments
 (0)