From 8d485f58b98e6b9f80a132147f2589273f28961b Mon Sep 17 00:00:00 2001 From: Mathias Leppich Date: Mon, 9 Sep 2024 15:29:43 +0200 Subject: [PATCH] feedback --- packages/playwright/src/runner/testGroups.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/playwright/src/runner/testGroups.ts b/packages/playwright/src/runner/testGroups.ts index 01bb4a2d81..929fcc3a98 100644 --- a/packages/playwright/src/runner/testGroups.ts +++ b/packages/playwright/src/runner/testGroups.ts @@ -217,7 +217,7 @@ function filterForShardRoundRobin( return group.tests.reduce((sum, test) => sum + Math.max(1, lastRunInfo.testDurations?.[test.id] || averageDuration), 0); }; - // We sort the test groups by the number of tests in descending order. + // We sort the test groups by group duration in descending order. const sortedTestGroups = testGroups.slice().sort((a, b) => weight(b) - weight(a)); // Then we add each group to the shard with the smallest number of tests.