1
0
mirror of https://github.com/danog/file.git synced 2024-12-14 02:07:26 +01:00
file/test/Driver/ParallelDriverTest.php
2022-02-07 19:31:21 -06:00

29 lines
596 B
PHP

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