Return-Path: X-Original-To: apmail-cordova-issues-archive@minotaur.apache.org Delivered-To: apmail-cordova-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6AC5A18454 for ; Wed, 25 Nov 2015 22:53:11 +0000 (UTC) Received: (qmail 98261 invoked by uid 500); 25 Nov 2015 22:53:11 -0000 Delivered-To: apmail-cordova-issues-archive@cordova.apache.org Received: (qmail 98234 invoked by uid 500); 25 Nov 2015 22:53:11 -0000 Mailing-List: contact issues-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@cordova.apache.org Received: (qmail 98210 invoked by uid 99); 25 Nov 2015 22:53:11 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Nov 2015 22:53:11 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 0CDCC2C1F57 for ; Wed, 25 Nov 2015 22:53:11 +0000 (UTC) Date: Wed, 25 Nov 2015 22:53:11 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: issues@cordova.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CB-8641) (Windows Phone 8.1) Some file-transfer plugin tests occasionally fail in mobilespec MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CB-8641?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15027744#comment-15027744 ] ASF GitHub Bot commented on CB-8641: ------------------------------------ Github user dblotsky commented on a diff in the pull request: https://github.com/apache/cordova-plugin-file-transfer/pull/118#discussion_r45928408 --- Diff: src/windows/FileTransferProxy.js --- @@ -116,9 +118,13 @@ exec(win, fail, 'FileTransfer', 'upload', // check if download isn't already cancelled var uploadOp = fileTransferOps[uploadId]; - if (uploadOp && uploadOp.state === FileTransferOperation.CANCELLED) { + if (uploadOp && uploadOp.state === FileTransferOperation.CANCELLED || abortedOpIds.indexOf(uploadId) !== -1) { --- End diff -- This condition is hard to read. Please encapsulate this logic in a descriptive function. > (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 > Fix For: Master > > > 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: issues-unsubscribe@cordova.apache.org For additional commands, e-mail: issues-help@cordova.apache.org