Skip to content

Commit 7e618ad

Browse files
Merge branch '10.5' into 11.0
2 parents c9944d4 + a3ce296 commit 7e618ad

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/Framework/TestRunner.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -408,12 +408,13 @@ private function shouldTimeLimitBeEnforced(TestCase $test): bool
408408
private function runTestWithTimeout(TestCase $test): bool
409409
{
410410
$_timeout = $this->configuration->defaultTimeLimit();
411+
$testSize = $test->size();
411412

412-
if ($test->size()->isSmall()) {
413+
if ($testSize->isSmall()) {
413414
$_timeout = $this->configuration->timeoutForSmallTests();
414-
} elseif ($test->size()->isMedium()) {
415+
} elseif ($testSize->isMedium()) {
415416
$_timeout = $this->configuration->timeoutForMediumTests();
416-
} elseif ($test->size()->isLarge()) {
417+
} elseif ($testSize->isLarge()) {
417418
$_timeout = $this->configuration->timeoutForLargeTests();
418419
}
419420

0 commit comments

Comments
 (0)