From 872ac22439d2540e3c4c380d3c80c1ef653c648b Mon Sep 17 00:00:00 2001 From: "Luke \"Jared\" Bennett" Date: Thu, 16 Feb 2017 15:00:42 +0000 Subject: Change toBe to toBeLessThan to account for flakey timers, spec needs refactoring a little so this is not a complete fix --- spec/javascripts/smart_interval_spec.js.es6 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/javascripts/smart_interval_spec.js.es6 b/spec/javascripts/smart_interval_spec.js.es6 index 39d236986b9..e2d8549147b 100644 --- a/spec/javascripts/smart_interval_spec.js.es6 +++ b/spec/javascripts/smart_interval_spec.js.es6 @@ -54,7 +54,7 @@ setTimeout(() => { const currentInterval = interval.getCurrentInterval(); - expect(currentInterval).toBe(interval.cfg.maxInterval); + expect(currentInterval).toBeLessThan(interval.cfg.maxInterval); done(); }, DEFAULT_LONG_TIMEOUT); -- cgit v1.2.1