cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From an-s...@apache.org
Subject cordova-plugin-file-transfer git commit: CB-9791 Decreased download and upload tests timeout
Date Tue, 13 Oct 2015 12:55:18 GMT
Repository: cordova-plugin-file-transfer
Updated Branches:
  refs/heads/master 7a1008c4b -> 1142a96b2


CB-9791 Decreased download and upload tests timeout


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/commit/1142a96b
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/tree/1142a96b
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/diff/1142a96b

Branch: refs/heads/master
Commit: 1142a96b2ce281fcc11b914dc21fac01eb446d9e
Parents: 7a1008c
Author: Alexander Sorokin <alexander.sorokin@akvelon.com>
Authored: Tue Oct 13 15:41:41 2015 +0300
Committer: Alexander Sorokin <alexander.sorokin@akvelon.com>
Committed: Tue Oct 13 15:41:41 2015 +0300

----------------------------------------------------------------------
 tests/tests.js | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/blob/1142a96b/tests/tests.js
----------------------------------------------------------------------
diff --git a/tests/tests.js b/tests/tests.js
index 691639d..364f715 100644
--- a/tests/tests.js
+++ b/tests/tests.js
@@ -32,8 +32,8 @@ exports.defineAutoTests = function () {
     var DEFAULT_FILESYSTEM_SIZE = 1024*50; //filesystem size in bytes
     var UNKNOWN_HOST = "http://foobar.apache.org";
     var HEADERS_ECHO = "http://whatheaders.com"; // NOTE: this site is very useful!
-    var DOWNLOAD_TIMEOUT = 2 * 60 * 1000; // download tests sometimes need a higher timeout
to complete successfully
-    var UPLOAD_TIMEOUT = 2 * 60 * 1000; // upload tests sometimes need a higher timeout to
complete successfully
+    var DOWNLOAD_TIMEOUT = 30 * 1000; // download tests sometimes need a higher timeout to
complete successfully
+    var UPLOAD_TIMEOUT = 30 * 1000; // upload tests sometimes need a higher timeout to complete
successfully
     var ABORT_DELAY = 100; // for abort() tests
 
     // config for upload test server
@@ -556,7 +556,7 @@ exports.defineAutoTests = function () {
                     transfer.onprogress = function () {};
 
                     transfer.download(fileURL, localFilePath, unexpectedCallbacks.httpWin,
downloadFail);
-                }, 30000);
+                }, DOWNLOAD_TIMEOUT);
 
                 it("filetransfer.spec.16 should handle bad file path", function (done) {
                     var fileURL = SERVER;
@@ -805,7 +805,7 @@ exports.defineAutoTests = function () {
                     };
 
                     transfer.upload(localFilePath, fileURL, unexpectedCallbacks.httpWin,
uploadFail, {});
-                }, 30000); // unknown host may need quite some time on some devices
+                }, UPLOAD_TIMEOUT);
 
                 it("filetransfer.spec.25 should handle missing file", function (done) {
 


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


Mime
View raw message