Return-Path: X-Original-To: apmail-brooklyn-commits-archive@minotaur.apache.org Delivered-To: apmail-brooklyn-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 55A38119E7 for ; Thu, 24 Jul 2014 17:02:51 +0000 (UTC) Received: (qmail 67704 invoked by uid 500); 24 Jul 2014 17:02:50 -0000 Delivered-To: apmail-brooklyn-commits-archive@brooklyn.apache.org Received: (qmail 67652 invoked by uid 500); 24 Jul 2014 17:02:50 -0000 Mailing-List: contact commits-help@brooklyn.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@brooklyn.incubator.apache.org Delivered-To: mailing list commits@brooklyn.incubator.apache.org Received: (qmail 67633 invoked by uid 99); 24 Jul 2014 17:02:50 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 24 Jul 2014 17:02:50 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO mail.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 24 Jul 2014 17:02:49 +0000 Received: (qmail 63630 invoked by uid 99); 24 Jul 2014 17:02:29 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 24 Jul 2014 17:02:29 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id 292969B30E9; Thu, 24 Jul 2014 17:02:29 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: richard@apache.org To: commits@brooklyn.incubator.apache.org Date: Thu, 24 Jul 2014 17:02:30 -0000 Message-Id: <6b84e1596977455e9d8d6c059521220d@git.apache.org> In-Reply-To: <6a2379509caf4230a6d7e060f8d58823@git.apache.org> References: <6a2379509caf4230a6d7e060f8d58823@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [2/3] git commit: jsgui: Speed two tests up by decreasing wait periods X-Virus-Checked: Checked by ClamAV on apache.org jsgui: Speed two tests up by decreasing wait periods Project: http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/commit/25057352 Tree: http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/tree/25057352 Diff: http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/diff/25057352 Branch: refs/heads/master Commit: 250573526698ac774595d82ab8a2daa1ea5a88bb Parents: d2960e0 Author: Sam Corbett Authored: Thu Jul 24 13:18:53 2014 +0100 Committer: Sam Corbett Committed: Thu Jul 24 17:59:26 2014 +0100 ---------------------------------------------------------------------- usage/jsgui/src/test/javascript/specs/router-spec.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/blob/25057352/usage/jsgui/src/test/javascript/specs/router-spec.js ---------------------------------------------------------------------- diff --git a/usage/jsgui/src/test/javascript/specs/router-spec.js b/usage/jsgui/src/test/javascript/specs/router-spec.js index 3d946d3..ea39255 100644 --- a/usage/jsgui/src/test/javascript/specs/router-spec.js +++ b/usage/jsgui/src/test/javascript/specs/router-spec.js @@ -67,7 +67,7 @@ define([ this.counter = 0; this.callPeriodically("test-callback", function() { this.counter += 1; - }, 100) + }, 3) } }); @@ -75,7 +75,7 @@ define([ it("should have 'this' set to the owning view", function() { Brooklyn.refresh = true; var view = new CallbackView(); - waits(500); + waits(15); runs(function() { expect(view.counter).toBeGreaterThan(0); }); @@ -84,7 +84,7 @@ define([ it("should not be run if Brooklyn.refresh is false", function() { Brooklyn.refresh = false; var view = new CallbackView(); - waits(500); + waits(15); runs(function() { expect(view.counter).toEqual(0); Brooklyn.refresh = true;