diff options
author | Simon Knox <psimyn@gmail.com> | 2017-10-24 18:58:05 +0300 |
---|---|---|
committer | Simon Knox <psimyn@gmail.com> | 2017-10-24 19:06:20 +0300 |
commit | 9101cce2a7c30a832b3d97d84cd53ca503a163d1 (patch) | |
tree | 0d9bddbef888053e22812f1cafab51e47768c929 /spec/javascripts/smart_interval_spec.js | |
parent | 2087f121bfedd2f51eb943f23026e823d196466a (diff) |
don't re-run smart interval callback if there is already one in progress
because some things take time
Diffstat (limited to 'spec/javascripts/smart_interval_spec.js')
-rw-r--r-- | spec/javascripts/smart_interval_spec.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/javascripts/smart_interval_spec.js b/spec/javascripts/smart_interval_spec.js index 7833bf3fb04..c602eda9560 100644 --- a/spec/javascripts/smart_interval_spec.js +++ b/spec/javascripts/smart_interval_spec.js @@ -9,7 +9,7 @@ import '~/smart_interval'; function createDefaultSmartInterval(config) { const defaultParams = { - callback: () => {}, + callback: () => Promise.resolve(), startingInterval: DEFAULT_STARTING_INTERVAL, maxInterval: DEFAULT_MAX_INTERVAL, incrementByFactorOf: DEFAULT_INCREMENT_FACTOR, |