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 <[email protected]>
Authored: Thu Nov 26 13:45:07 2015 -0800
Committer: Shazron Abdullah <[email protected]>
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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to