--- ../test/Driver/ParallelFileTest.php	2026-07-27 18:42:16.231862267 +0300
+++ ../test/Driver/ParallelFileTest.php	2026-07-27 19:19:48.921324580 +0300
@@ -5,8 +5,10 @@
 use Amp\File;
 use Amp\File\Driver\ParallelFilesystemDriver;
 use Amp\File\Test\AsyncFileTest;
+use Amp\Parallel\Worker\ContextWorkerFactory;
 use Amp\Parallel\Worker\ContextWorkerPool;
 use Amp\Parallel\Worker\WorkerPool;
+use PHPUnit\Framework\Attributes\DataProvider;
 
 class ParallelFileTest extends AsyncFileTest
 {
@@ -16,7 +18,10 @@
 
     protected function createDriver(int $workerLimit = self::DEFAULT_WORKER_LIMIT): File\FilesystemDriver
     {
-        $this->pool = new ContextWorkerPool($workerLimit);
+        $this->pool = new ContextWorkerPool(
+            $workerLimit,
+            new ContextWorkerFactory(\dirname(__DIR__, 2) . '/worker-bootstrap.php'),
+        );
 
         return new ParallelFilesystemDriver($this->pool);
     }
@@ -26,14 +31,12 @@
         $this->pool->shutdown();
     }
 
-    public function getWorkerLimits(): iterable
+    public static function getWorkerLimits(): iterable
     {
         return \array_map(fn (int $count): array => [$count], \range(4, 16, 4));
     }
 
-    /**
-     * @dataProvider getWorkerLimits
-     */
+    #[DataProvider('getWorkerLimits')]
     public function testMultipleOpenFiles(int $maxCount)
     {
         $driver = $this->createDriver($maxCount);
