mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-24 06:35:49 +03: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
@ -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…
Reference in New Issue
Block a user