From 618c4b9623a057571f6d9cc45f32975050befbf1 Mon Sep 17 00:00:00 2001 From: Sam Lord Date: Mon, 27 May 2024 15:41:02 +0100 Subject: [PATCH] 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 --- .../lib/importers/RecommendationClickEventsImporter.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ghost/data-generator/lib/importers/RecommendationClickEventsImporter.js b/ghost/data-generator/lib/importers/RecommendationClickEventsImporter.js index b9595f8ec8..0df2df5273 100644 --- a/ghost/data-generator/lib/importers/RecommendationClickEventsImporter.js +++ b/ghost/data-generator/lib/importers/RecommendationClickEventsImporter.js @@ -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() {