Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorLuke "Jared" Bennett <lbennett@gitlab.com>2017-02-16 18:00:42 +0300
committerLuke "Jared" Bennett <lbennett@gitlab.com>2017-02-16 18:00:42 +0300
commit872ac22439d2540e3c4c380d3c80c1ef653c648b (patch)
tree9fa41e4b157c098cf6a32922ac5c3ada4955fd7a /spec
parent2917d042c295cffb2ea1d131fa33c4ebc2510eda (diff)
Change toBe to toBeLessThan to account for flakey timers, spec needs refactoring a little so this is not a complete fix
Diffstat (limited to 'spec')
-rw-r--r--spec/javascripts/smart_interval_spec.js.es62
1 files changed, 1 insertions, 1 deletions
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);