Skip to content

Commit

Permalink
fiddle with some timeouts to account for older/slower emulators
Browse files Browse the repository at this point in the history
and time testruns
  • Loading branch information
jlipps committed Oct 28, 2013
1 parent 0ce7862 commit 823d4da
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions bin/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ for arg in "$@"; do
fi
done

appium_mocha="mocha -t 60000 -R spec $mocha_args"
appium_mocha="mocha -t 90000 -R spec $mocha_args"

mkdir -p ./test/functional/_joined

Expand All @@ -68,7 +68,7 @@ if $ios_only || $all_tests; then
else
echo "Did not find /Applications/Xcode-6.1.app, using default"
fi
$appium_mocha $ios_testfile
time $appium_mocha $ios_testfile
fi

if $ios7_only || $all_tests; then
Expand All @@ -84,7 +84,7 @@ if $ios7_only || $all_tests; then
else
echo "Did not find /Applications/Xcode-7.0.app, using default"
fi
$appium_mocha $ios7_testfile
time $appium_mocha $ios7_testfile
fi

if $did_switch_xcode; then
Expand All @@ -98,5 +98,5 @@ if $android_only || $all_tests; then
android_testfile="./test/functional/_joined/android.js"
android_dirs="apidemos selendroid android"
join_testfiles android $android_testfile $android_dirs
$appium_mocha $android_testfile
time $appium_mocha $android_testfile
fi
2 changes: 1 addition & 1 deletion test/helpers/driverblock.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ var driverBlock = function(tests, host, port, caps, extraCaps) {
port = (typeof port === "undefined" || port === null) ? _.clone(defaultPort) : port;
caps = (typeof caps === "undefined" || caps === null) ? _.clone(defaultCaps) : caps;
caps = _.extend(caps, typeof extraCaps === "undefined" ? {} : extraCaps);
caps.launchTimeout = 18000;
caps.launchTimeout = 30000;
var driverHolder = {driver: null, sessionId: null};
var expectConnError = extraCaps && extraCaps.expectConnError;

Expand Down

0 comments on commit 823d4da

Please sign in to comment.