cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shazron Abdullah (JIRA)" <>
Subject [jira] [Commented] (CB-10088) filetransfer spec.10 test is faulty
Date Thu, 26 Nov 2015 21:34:10 GMT


Shazron Abdullah commented on CB-10088:

The fix here is to append a query string to the file to download, to bust the cache. The value
should be randomized so the test can pass on multiple runs.

> filetransfer spec.10 test is faulty
> -----------------------------------
>                 Key: CB-10088
>                 URL:
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Plugin File Transfer
>         Environment: Xcode 7.1 
> iOS 9.1 iPhone 6s
>            Reporter: Shazron Abdullah
>              Labels: iOS
> Copied from:
> This is within the context of mobile-spec's autotests.
> I added some logs in the native code, and cordova-filetransfer.tests spec.10's file "downloaded"
within 30ms (probably because of caching). When calling abort, there is no active file transfer
so the failure callback is not called back to JavaScript:
> Since the failure callback is never called (the abort), and the the unexpected download
success was called, the test fails. 
> The test is faulty and needs to be reworked to take into account this case, where the
download finished before the file could be aborted (the test delays the abort call).

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message