From 3ae73a28792197e38cca797b278617b7b73e3333 Mon Sep 17 00:00:00 2001 From: Shazron Abdullah Date: Thu, 26 Nov 2015 13:45:07 -0800 Subject: [PATCH] CB-10088 - filetransfer spec.10 and spec.11 test is faulty --- tests/tests.js | 2 ++ 1 file changed, 2 insertions(+) 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.