Data generator: Reduced limit on importer to prevent test crashes

ref: ENG-955

Tested with a static number, using 35 causes failures, 30 seems safe
This commit is contained in:
Sam Lord 2024-05-27 15:41:02 +01:00
parent c2b250fe53
commit 618c4b9623

View File

@ -14,7 +14,7 @@ class RecommendationClickEventsImporter extends TableImporter {
const recommendations = await this.transaction.select('id', 'created_at').from('recommendations');
this.members = await this.transaction.select('id').from('members').limit(500);
await this.importForEach(recommendations, quantity ? quantity / recommendations.length : () => faker.datatype.number({min: 0, max: 50}));
await this.importForEach(recommendations, quantity ? quantity / recommendations.length : () => faker.datatype.number({min: 0, max: 30}));
}
generate() {