cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From shaz...@apache.org
Subject cordova-plugin-file-transfer git commit: CB-10088 - filetransfer spec.10 and spec.11 test is faulty
Date Thu, 26 Nov 2015 21:45:38 GMT
Repository: cordova-plugin-file-transfer
Updated Branches:
  refs/heads/master c97f544ef -> 3ae73a287


CB-10088 - filetransfer spec.10 and spec.11 test is faulty


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/3ae73a28
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/tree/3ae73a28
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/diff/3ae73a28

Branch: refs/heads/master
Commit: 3ae73a28792197e38cca797b278617b7b73e3333
Parents: c97f544
Author: Shazron Abdullah <shazron@apache.org>
Authored: Thu Nov 26 13:45:07 2015 -0800
Committer: Shazron Abdullah <shazron@apache.org>
Committed: Thu Nov 26 13:45:30 2015 -0800

----------------------------------------------------------------------
 tests/tests.js | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/blob/3ae73a28/tests/tests.js
----------------------------------------------------------------------
diff --git a/tests/tests.js b/tests/tests.js
index 5c5df8a..d55b7e4 100644
--- a/tests/tests.js
+++ b/tests/tests.js
@@ -433,6 +433,7 @@ exports.defineAutoTests = function () {
                 it("filetransfer.spec.11 should call the error callback on abort()", function
(done) {
 
                     var fileURL = 'http://cordova.apache.org/downloads/BlueZedEx.mp3';
+                    fileURL = fileURL + '?q=' + (new Date()).getTime();
 
                     transfer.download(fileURL, localFilePath, unexpectedCallbacks.httpWin,
done);
                     setTimeout(function() {
@@ -468,6 +469,7 @@ exports.defineAutoTests = function () {
                 it("filetransfer.spec.10 should be stopped by abort() right away", function
(done) {
 
                     var fileURL = 'http://cordova.apache.org/downloads/BlueZedEx.mp3';
+                    fileURL = fileURL + '?q=' + (new Date()).getTime();
 
                     expect(transfer.abort).not.toThrow(); // should be a no-op.
 


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


Mime
View raw message