From 89920ad233c9d7dd2ceded8950d286915883e1a4 Mon Sep 17 00:00:00 2001 From: Gautier Pelloux-Prayer Date: Wed, 9 Sep 2015 14:02:38 +0200 Subject: [PATCH] LinphoneUITester: do not send a message for test big chat list, it is not required --- TestsUI/ChatTester.m | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/TestsUI/ChatTester.m b/TestsUI/ChatTester.m index 4c9bf5c1a..a49d9268c 100644 --- a/TestsUI/ChatTester.m +++ b/TestsUI/ChatTester.m @@ -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.); }