mirror of
https://github.com/danog/file.git
synced 2024-12-03 09:47:54 +01:00
27 lines
589 B
PHP
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();
|
|
}
|
|
}
|