Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id F1289200B99 for ; Wed, 5 Oct 2016 14:42:31 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id EFBF6160ADE; Wed, 5 Oct 2016 12:42:31 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 40A5A160ADB for ; Wed, 5 Oct 2016 14:42:31 +0200 (CEST) Received: (qmail 93910 invoked by uid 500); 5 Oct 2016 12:42:30 -0000 Mailing-List: contact commits-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list commits@cordova.apache.org Received: (qmail 93895 invoked by uid 99); 5 Oct 2016 12:42:30 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Oct 2016 12:42:30 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 1C95CE05D3; Wed, 5 Oct 2016 12:42:30 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: alsorokin@apache.org To: commits@cordova.apache.org Message-Id: <7e5d385bd5ff44e5a54270d7e0ad4a2b@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: cordova-plugin-file-transfer git commit: CB-11959 Fixed filetransfer.spec.21 test failure on iOS and Windows Store when using local server Date: Wed, 5 Oct 2016 12:42:30 +0000 (UTC) archived-at: Wed, 05 Oct 2016 12:42:32 -0000 Repository: cordova-plugin-file-transfer Updated Branches: refs/heads/master ed88cfc11 -> 709fd057f CB-11959 Fixed filetransfer.spec.21 test failure on iOS and Windows Store when using local server 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/709fd057 Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/tree/709fd057 Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/diff/709fd057 Branch: refs/heads/master Commit: 709fd057f2f9b29c8aafd696c96f02b9f043368a Parents: ed88cfc Author: Alexander Sorokin Authored: Wed Oct 5 15:26:56 2016 +0300 Committer: Alexander Sorokin Committed: Wed Oct 5 15:26:56 2016 +0300 ---------------------------------------------------------------------- tests/tests.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/blob/709fd057/tests/tests.js ---------------------------------------------------------------------- diff --git a/tests/tests.js b/tests/tests.js index 43fc3cd..f4fd636 100644 --- a/tests/tests.js +++ b/tests/tests.js @@ -1075,7 +1075,10 @@ exports.defineAutoTests = function () { }, GRACE_TIME_DELTA); }; - writeFile(specContext.root, specContext.fileName, new Array(200000).join("aborttest!"), fileWin, done); + // windows store and ios are too fast, win is called before we have a chance to abort + // so let's get them busy - while not providing an extra load to the slow Android emulators + var arrayLength = (isWindows || isIos) ? 1000000 : 200000; + writeFile(specContext.root, specContext.fileName, new Array(arrayLength).join("aborttest!"), fileWin, done); }, UPLOAD_TIMEOUT); it("filetransfer.spec.22 should get http status and body on failure", function (done) { --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org For additional commands, e-mail: commits-help@cordova.apache.org