mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-17 11:08:06 +00:00
LinphoneUITester: reuse MESSAGE logs level (...) but turn it off for chat tests because they are spamming way too much
This commit is contained in:
parent
ae4f983df3
commit
738a98b69c
6 changed files with 9 additions and 7 deletions
|
|
@ -2102,9 +2102,9 @@ static void audioRouteChangeListenerCallback(void *inUserData, // 1
|
|||
|
||||
- (void)setLogsEnabled:(BOOL)enabled {
|
||||
if ([LinphoneManager isRunningTests]) {
|
||||
NSLog(@"Running tests, forcing logs to Warning level");
|
||||
NSLog(@"Running tests, forcing logs to MESSAGE level");
|
||||
linphone_core_enable_logs_with_cb((OrtpLogFunc)linphone_iphone_log_handler);
|
||||
linphone_core_set_log_level(ORTP_WARNING);
|
||||
linphone_core_set_log_level(ORTP_MESSAGE);
|
||||
} else {
|
||||
if (enabled) {
|
||||
NSLog(@"Enabling debug logs");
|
||||
|
|
|
|||
|
|
@ -194,8 +194,7 @@ static LinphoneBuffer *linphone_iphone_file_transfer_send(LinphoneChatMessage *m
|
|||
linphone_chat_message_cbs_set_file_transfer_send(linphone_chat_message_get_callbacks(msg), NULL);
|
||||
linphone_chat_message_cbs_set_file_transfer_recv(linphone_chat_message_get_callbacks(msg), NULL);
|
||||
// when we cancel file transfer, this will automatically trigger NotDelivered callback... recalling ourself a
|
||||
// second time
|
||||
// so we have to unset message BEFORE calling this
|
||||
// second time so we have to unset message BEFORE calling this
|
||||
linphone_chat_message_cancel_file_transfer(msg);
|
||||
linphone_chat_message_unref(msg);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -16,6 +16,8 @@
|
|||
- (void)beforeAll {
|
||||
[super beforeAll];
|
||||
[self switchToValidAccountIfNeeded];
|
||||
// turn off logs for chat tests because there are way to much logs in liblinphone in filetransfer and sqlite
|
||||
linphone_core_set_log_level(ORTP_WARNING);
|
||||
}
|
||||
|
||||
- (void)beforeEach {
|
||||
|
|
@ -29,6 +31,7 @@
|
|||
|
||||
- (void)afterAll {
|
||||
[super afterAll];
|
||||
linphone_core_set_log_level(ORTP_MESSAGE);
|
||||
// at the end of tests, go back to chat rooms to display main bar
|
||||
if ([tester tryFindingTappableViewWithAccessibilityLabel:@"Back" error:nil]) {
|
||||
[self goBackFromChat];
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
Subproject commit 298264c56d933a9305395439c988d6ad916a3266
|
||||
Subproject commit b1707d976a90afa8079655ac1f9f0eef23dc5709
|
||||
|
|
@ -1 +1 @@
|
|||
Subproject commit 0150373697676183e6735d69620d6e7dc5545134
|
||||
Subproject commit 6f9dde2b9fd2dd64a0e0bab87cf3e0b30290da1d
|
||||
|
|
@ -1 +1 @@
|
|||
Subproject commit 654990ac5c221f87b1ea97e8bf2f3c7639d6d96b
|
||||
Subproject commit fdf5abefd67249b2270ceb605ebd1b61744e6811
|
||||
Loading…
Add table
Reference in a new issue