BigW Consortium Gitlab

Change toBe to toBeLessThan to account for flakey timers, spec needs refactoring…

Change toBe to toBeLessThan to account for flakey timers, spec needs refactoring a little so this is not a complete fix
parent 2917d042
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment