Skip to content

Commit f4b2cf3

Browse files
committed
wip
1 parent 3ac0fd9 commit f4b2cf3

2 files changed

Lines changed: 3 additions & 13 deletions

File tree

.github/workflows/test-random-execution.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,12 @@ on:
4141
description: Limit concurrent test jobs (auto-detect if omitted)
4242
type: string
4343
required: false
44-
default: ''
44+
default: '1'
4545
repeat:
4646
description: Repeat full component run REPEAT times
4747
type: string
4848
required: false
49-
default: '10'
49+
default: '50'
5050
timeout:
5151
description: Per-component timeout in seconds (0 disables)
5252
type: string

system/Test/CIUnitTestCase.php

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -233,17 +233,7 @@ abstract class CIUnitTestCase extends TestCase
233233
public static function setUpBeforeClass(): void
234234
{
235235
parent::setUpBeforeClass();
236-
237-
// Pre-load MockCodeIgniter and its parent CodeIgniter\CodeIgniter while the
238-
// autoloader is still in its bootstrap state. This prevents sporadic
239-
// "Class not found" / "Failed to open stream" errors on the first test in a
240-
// randomly-ordered run that occur when Composer's PSR-4 fallback uses a
241-
// vendor/composer/../../system path that fails to open in some CI environments.
242-
// Explicit require_once with SYSTEMPATH bypasses both the classmap and PSR-4
243-
// fallback entirely, using the absolute realpath set during bootstrap.
244-
require_once SYSTEMPATH . 'CodeIgniter.php';
245-
require_once SYSTEMPATH . 'Test/Mock/MockCodeIgniter.php';
246-
236+
247237
helper(['url', 'test']);
248238
}
249239

0 commit comments

Comments
 (0)