brooklyn-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rich...@apache.org
Subject [2/3] git commit: jsgui: Speed two tests up by decreasing wait periods
Date Thu, 24 Jul 2014 17:02:30 GMT
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 <sam.corbett@cloudsoftcorp.com>
Authored: Thu Jul 24 13:18:53 2014 +0100
Committer: Sam Corbett <sam.corbett@cloudsoftcorp.com>
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;


Mime
View raw message