Commit 1d298e49 authored by Simon Knox's avatar Simon Knox

add changelog and spec

parent 9101cce2
---
title: improve merge request realtime polling performance
merge_request:
author:
type: fixed
......@@ -58,6 +58,18 @@ import '~/smart_interval';
done();
}, DEFAULT_LONG_TIMEOUT);
});
it('does not increment while waiting for callback', function (done) {
const smartInterval = createDefaultSmartInterval({
callback: () => new Promise($.noop),
});
setTimeout(() => {
const oneInterval = smartInterval.cfg.startingInterval * DEFAULT_INCREMENT_FACTOR;
expect(smartInterval.getCurrentInterval()).toEqual(oneInterval);
done();
}, DEFAULT_SHORT_TIMEOUT);
});
});
describe('Public methods', function () {
......
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