diff --git a/ui/mirage/factories/storage-controller.js b/ui/mirage/factories/storage-controller.js index 4399e375b..6d5866482 100644 --- a/ui/mirage/factories/storage-controller.js +++ b/ui/mirage/factories/storage-controller.js @@ -7,7 +7,7 @@ export default Factory.extend({ provider: faker.helpers.randomize(STORAGE_PROVIDERS), providerVersion: '1.0.1', - healthy: faker.random.boolean, + healthy: i => [true, false][i % 2], healthDescription() { this.healthy ? 'healthy' : 'unhealthy'; }, diff --git a/ui/mirage/factories/storage-node.js b/ui/mirage/factories/storage-node.js index b52241959..a1e684987 100644 --- a/ui/mirage/factories/storage-node.js +++ b/ui/mirage/factories/storage-node.js @@ -7,7 +7,7 @@ export default Factory.extend({ provider: faker.helpers.randomize(STORAGE_PROVIDERS), providerVersion: '1.0.1', - healthy: faker.random.boolean, + healthy: i => [true, false][i % 2], healthDescription() { this.healthy ? 'healthy' : 'unhealthy'; },