1
0
mirror of https://github.com/danog/file.git synced 2024-12-12 09:19:48 +01:00
file/test/Driver/ParallelFilesystemDriverTest.php
2022-02-08 19:49:16 +01:00

27 lines
589 B
PHP

<?php
namespace Amp\File\Test\Driver;
use Amp\File;
use Amp\File\Driver\ParallelFilesystemDriver;
use Amp\File\Test\FilesystemDriverTest;
use Amp\Parallel\Worker\DefaultWorkerPool;
use Amp\Parallel\Worker\WorkerPool;
class ParallelFilesystemDriverTest extends FilesystemDriverTest
{
private WorkerPool $pool;
protected function createDriver(): File\FilesystemDriver
{
$this->pool = new DefaultWorkerPool();
return new ParallelFilesystemDriver($this->pool);
}
protected function tearDownAsync(): void
{
$this->pool->shutdown();
}
}