mirror of
https://github.com/danog/file.git
synced 2024-12-02 17:28:24 +01:00
27 lines
503 B
PHP
27 lines
503 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\Pool;
|
|
|
|
class ParallelDriverTest extends DriverTest
|
|
{
|
|
private Pool $pool;
|
|
|
|
protected function createDriver(): File\Driver
|
|
{
|
|
$this->pool = new DefaultPool;
|
|
|
|
return new ParallelDriver($this->pool);
|
|
}
|
|
|
|
protected function tearDownAsync(): void
|
|
{
|
|
$this->pool->shutdown();
|
|
}
|
|
}
|