CB-12982: (Android, iOS) Appium tests: try to create a session harder
diff --git a/appium-tests/common/common.spec.js b/appium-tests/common/common.spec.js
index 2849c23..3b967fc 100644
--- a/appium-tests/common/common.spec.js
+++ b/appium-tests/common/common.spec.js
@@ -247,7 +247,15 @@
     }, MINUTE);
 
     it('should connect to an appium endpoint properly', function (done) {
+        // retry up to 3 times
         getDriver()
+            .fail(function () {
+                return getDriver()
+                    .fail(function () {
+                        return getDriver()
+                            .fail(fail);
+                    });
+            })
             .then(function () {
                 failedToStart = false;
             }, fail)
@@ -318,7 +326,7 @@
                     });
             })
             .done(done);
-    }, 10 * MINUTE);
+    }, 30 * MINUTE);
 
     describe('Picking contacts', function () {
         afterEach(function (done) {