From ec7f5e05854fb1d7c8886cd979d87c7bdf8ee457 Mon Sep 17 00:00:00 2001 From: Maurice Date: Thu, 19 Nov 2026 22:11:29 +0100 Subject: [PATCH] test(atlas): cache the test places' regions in one go rather than an awaited loop --- server/tests/unit/nest/travel-stats.service.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/tests/unit/nest/travel-stats.service.test.ts b/server/tests/unit/nest/travel-stats.service.test.ts index 94524a333..9c7c079dc 100644 --- a/server/tests/unit/nest/travel-stats.service.test.ts +++ b/server/tests/unit/nest/travel-stats.service.test.ts @@ -634,7 +634,7 @@ describe('Atlas page and passport card count the same places and cities (#3137)' lng: 12.0972, address: 'Steinerne Bruecke, Regensburg, Bavaria, Germany', }); - for (const id of [hotelA, hotelB, square, castle, bridge]) await cacheRegion(id, 'Bavaria'); + await Promise.all([hotelA, hotelB, square, castle, bridge].map((id) => cacheRegion(id, 'Bavaria'))); // A bare name holds no city, and two places without address or coordinates are two places. await addPlace(first.id, 'Beer garden', { address: 'Augustiner Keller' }); await addPlace(second.id, 'Beer hall', { address: 'Hofbraeuhaus' });