From 9b3f168cd18be1f32cf3734d3089ea6ea75cc670 Mon Sep 17 00:00:00 2001 From: Gautier Pelloux-Prayer Date: Fri, 2 Oct 2015 14:33:34 +0200 Subject: [PATCH] travis: outch. Fix typo in registration delay... --- TestsUI/LinphoneTestCase.m | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/TestsUI/LinphoneTestCase.m b/TestsUI/LinphoneTestCase.m index f20fbc673..320c35b1f 100644 --- a/TestsUI/LinphoneTestCase.m +++ b/TestsUI/LinphoneTestCase.m @@ -154,11 +154,12 @@ - (void)waitForRegistration { // wait for account to be registered - int timeout = 45; // TODO: check why this is so wrong... - while (timeout && [tester tryFindingViewWithAccessibilityLabel:@"Registration state" - value:@"Registered" - traits:UIAccessibilityTraitStaticText - error:nil]) { + int timeout = 15; // TODO: check why this is so wrong... + while (timeout && + ![tester tryFindingViewWithAccessibilityLabel:@"Registration state" + value:@"Registered" + traits:UIAccessibilityTraitStaticText + error:nil]) { [tester waitForTimeInterval:1]; timeout--; }