Reduce the number of task groups and task events that are made

This commit is contained in:
Michael Lange
2019-04-11 18:15:35 -07:00
parent 74190ff809
commit 768bfdf87d
2 changed files with 4 additions and 4 deletions

View File

@@ -15,7 +15,7 @@ export default Factory.extend({
return this.id;
},
groupsCount: () => faker.random.number({ min: 1, max: 5 }),
groupsCount: () => faker.random.number({ min: 1, max: 3 }),
region: () => 'global',
type: faker.list.random(...JOB_TYPES),
@@ -27,7 +27,7 @@ export default Factory.extend({
faker.list.random(...DATACENTERS)
),
childrenCount: () => faker.random.number({ min: 1, max: 5 }),
childrenCount: () => faker.random.number({ min: 1, max: 3 }),
periodic: trait({
type: 'batch',
@@ -137,7 +137,7 @@ export default Factory.extend({
});
if (!job.noDeployments) {
Array(faker.random.number({ min: 1, max: 10 }))
Array(faker.random.number({ min: 1, max: 3 }))
.fill(null)
.map((_, index) => {
return server.create('job-version', {

View File

@@ -17,7 +17,7 @@ export default Factory.extend({
afterCreate(state, server) {
const props = [
'task-event',
faker.random.number({ min: 1, max: 10 }),
faker.random.number({ min: 1, max: 3 }),
{
taskStateId: state.id,
},