mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-03 23:00:14 -05:00
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:
parent
c2b250fe53
commit
618c4b9623
1 changed files with 1 additions and 1 deletions
|
@ -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() {
|
||||
|
|
Loading…
Add table
Reference in a new issue