[
https://issues.apache.org/jira/browse/CB-8641?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14355464#comment-14355464
]
ASF GitHub Bot commented on CB-8641:
------------------------------------
Github user nikhilkh commented on a diff in the pull request:
https://github.com/apache/cordova-plugin-file-transfer/pull/69#discussion_r26153526
--- Diff: tests/tests.js ---
@@ -305,7 +306,17 @@ exports.defineAutoTests = function () {
// - 'httpssss://example.com'
// - 'apache.org', with subdomains="true"
// - 'cordova-filetransfer.jitsu.com'
- describe('download', function() {
+ describe('download', function () {
+ var originalTimeout = jasmine.DEFAULT_TIMEOUT_INTERVAL;
+
+ beforeEach(function () {
+ // Download tests need a larger time interval to run
successfully
+ jasmine.DEFAULT_TIMEOUT_INTERVAL = 10000;
--- End diff --
We've switched to moving Jasmine 2.2 which provides a nice syntax for
modifying default timeout duration:
http://jasmine.github.io/2.2/introduction.html#section-51
> (Windows Phone 8.1) Some file-transfer plugin tests occasionally fail in
> mobilespec
> -----------------------------------------------------------------------------------
>
> Key: CB-8641
> URL: https://issues.apache.org/jira/browse/CB-8641
> Project: Apache Cordova
> Issue Type: Bug
> Components: Plugin File Transfer
> Reporter: Alexander Sorokin
> Priority: Minor
>
> Some file-transfer plugin tests occasionally fail in mobilespec:
> File-transfer.spec.10 download should be stopped by abort() right away
> File-transfer.spec.21 upload should be stopped by abort() right away
> The issue seems to be caused by insufficient timeout and could be fixed by
> increasing it.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]