Skip to content

Commit 6b2b486

Browse files
committed
MQE-2495: config parallel by number of groups
1 parent 628ab28 commit 6b2b486

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/Magento/FunctionalTestingFramework/Util/Sorter/ParallelGroupSorter.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,6 @@ public function getTestsGroupedByFixedGroupCount($suiteConfiguration, $testNameT
103103
}
104104

105105
// Calculate suite group totals
106-
$suiteNameToSize = $this->getSuiteToSize($suiteNameToTestSize);
107106
$suiteNameToGroupCount = $this->getSuiteGroupCounts($suiteNameToTestSize, $testNameToSize, $groupTotal);
108107

109108
// Calculate test group total
@@ -129,9 +128,8 @@ public function getTestsGroupedByFixedGroupCount($suiteConfiguration, $testNameT
129128
*/
130129
private function getSuiteGroupCounts($suiteNameToTestSize, $testNameToSize, $groupTotal)
131130
{
132-
$suiteNameToSize = $this->getSuiteToSize($suiteNameToTestSize);
133-
134131
// Calculate the minimum possible group time
132+
$suiteNameToSize = $this->getSuiteToSize($suiteNameToTestSize);
135133
$minGroupTime = ceil((array_sum($testNameToSize) + array_sum($suiteNameToSize)) / $groupTotal);
136134

137135
// Find maximum suite time

0 commit comments

Comments
 (0)