Commit dd1fdc51 authored by Bryce Johnson's avatar Bryce Johnson

Adjust mocking logic to show all states.

parent e317957b
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
//= subbable_resource //= subbable_resource
function getRandomInt(min, max) { function getRandomInt(min, max) {
const justReturnZero = Math.random > .9; const justReturnZero = Math.random() > .5;
return justReturnZero ? 0 : Math.floor(Math.random() * (max - min + 1)) + min; return justReturnZero ? 0 : Math.floor(Math.random() * (max - min + 1)) + min;
} }
...@@ -33,9 +33,9 @@ function getRandomInt(min, max) { ...@@ -33,9 +33,9 @@ function getRandomInt(min, max) {
initPolling() { initPolling() {
new gl.SmartInterval({ new gl.SmartInterval({
callback: this.fetchIssuable, callback: this.fetchIssuable,
startingInterval: 4000, startingInterval: 1000,
maxInterval: 10000, maxInterval: 10000,
incrementByFactorOf: 2, incrementByFactorOf: 3,
lazyStart: false, lazyStart: false,
}); });
}, },
......
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