This is an automated email from the ASF dual-hosted git repository. janpio pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/cordova-paramedic.git
The following commit(s) were added to refs/heads/master by this push: new cd41bdc increase timeout to 10min + clearer output in case this timeout isn't enough cd41bdc is described below commit cd41bdcef7364d1bdbf4dccc9f2898764b182ef7 Author: Jan Piotrowski <piotrowski+git...@gmail.com> AuthorDate: Mon Oct 1 14:26:49 2018 +0200 increase timeout to 10min + clearer output in case this timeout isn't enough --- lib/paramedic.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/paramedic.js b/lib/paramedic.js index 4f09966..95d35d0 100644 --- a/lib/paramedic.js +++ b/lib/paramedic.js @@ -47,7 +47,7 @@ require('./appium/helpers/wdHelper'); // Time to wait for initial device connection. // If device has not connected within this interval the tests are stopped. -var INITIAL_CONNECTION_TIMEOUT = 300000; // 5mins +var INITIAL_CONNECTION_TIMEOUT = 600000; // 10mins var applicationsToGrantPermission = [ 'kTCCServiceAddressBook' @@ -461,7 +461,7 @@ ParamedicRunner.prototype.waitForTests = function () { return Q.promise(function(resolve, reject) { // time out if connection takes too long - var ERR_MSG = 'Seems like device not connected to local server in ' + INITIAL_CONNECTION_TIMEOUT / 1000 + ' secs'; + var ERR_MSG = 'waitForTests: Seems like device not connected to local server in ' + INITIAL_CONNECTION_TIMEOUT / 1000 + ' secs'; setTimeout(function() { if (!self.server.isDeviceConnected()) { reject(new Error(ERR_MSG)); @@ -539,7 +539,7 @@ ParamedicRunner.prototype.shouldWaitForTestResult = function () { ParamedicRunner.prototype.waitForConnection = function () { var self = this; - var ERR_MSG = 'Seems like device not connected to local server in ' + INITIAL_CONNECTION_TIMEOUT / 1000 + ' secs'; + var ERR_MSG = 'waitForConnection: Seems like device not connected to local server in ' + INITIAL_CONNECTION_TIMEOUT / 1000 + ' secs'; return Q.promise(function(resolve, reject) { setTimeout(function () { --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@cordova.apache.org For additional commands, e-mail: commits-h...@cordova.apache.org