mirror of
https://github.com/danog/file.git
synced 2024-12-03 09:47:54 +01:00
27 lines
609 B
PHP
27 lines
609 B
PHP
<?php declare(strict_types=1);
|
|
|
|
namespace Amp\File\Test\Driver;
|
|
|
|
use Amp\File;
|
|
use Amp\File\Driver\ParallelFilesystemDriver;
|
|
use Amp\File\Test\FilesystemDriverTest;
|
|
use Amp\Parallel\Worker\ContextWorkerPool;
|
|
use Amp\Parallel\Worker\WorkerPool;
|
|
|
|
class ParallelFilesystemDriverTest extends FilesystemDriverTest
|
|
{
|
|
private WorkerPool $pool;
|
|
|
|
protected function createDriver(): File\FilesystemDriver
|
|
{
|
|
$this->pool = new ContextWorkerPool();
|
|
|
|
return new ParallelFilesystemDriver($this->pool);
|
|
}
|
|
|
|
protected function tearDown(): void
|
|
{
|
|
$this->pool->shutdown();
|
|
}
|
|
}
|