mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-17 11:08:06 +00:00
LinphoneUITester: do not send a message for test big chat list, it is not required
This commit is contained in:
parent
e89c325f70
commit
89920ad233
1 changed files with 2 additions and 5 deletions
|
|
@ -160,17 +160,14 @@
|
|||
// create lots of chat rooms...
|
||||
LinphoneCore *lc = [LinphoneManager getLc];
|
||||
for (int i = 0; i < 100; i++) {
|
||||
LinphoneChatRoom *room =
|
||||
linphone_core_get_chat_room_from_uri(lc, [[NSString stringWithFormat:@"%@ - %d", [self me], i] UTF8String]);
|
||||
linphone_chat_room_send_message(room, "Hello");
|
||||
linphone_core_get_chat_room_from_uri(lc, [[NSString stringWithFormat:@"%@ - %d", [self me], i] UTF8String]);
|
||||
}
|
||||
|
||||
[tester waitForTimeInterval:5]; // wait for all messages to be delivered
|
||||
|
||||
NSTimeInterval before = [[NSDate date] timeIntervalSince1970];
|
||||
[tester tapViewWithAccessibilityLabel:@"Chat"];
|
||||
NSTimeInterval after = [[NSDate date] timeIntervalSince1970];
|
||||
|
||||
XCTAssertEqual([[self findTableView:@"ChatRoom list"] numberOfRowsInSection:0], 100);
|
||||
// conversation loading MUST be less than 1 sec
|
||||
XCTAssertLessThan(after - before, 1.);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue