Skip to content

Commit 29fcfb1

Browse files
committed
Only let child processes run for 0.01 second after done during tests to clean up faster
1 parent 5c9bc40 commit 29fcfb1

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tests/Adapters/AbstractAdaptersTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
use React\Filesystem\Filesystem;
99
use React\Filesystem\Pthreads;
1010
use React\Tests\Filesystem\TestCase;
11+
use WyriHaximus\React\ChildProcess\Pool\Options;
1112

1213
abstract class AbstractAdaptersTest extends TestCase
1314
{
@@ -71,7 +72,7 @@ protected function getChildProcessProvider(callable $loopFactory)
7172
$loop = $loopFactory();
7273
return [
7374
$loop,
74-
new ChildProcess\Adapter($loop),
75+
new ChildProcess\Adapter($loop, [Options::TTL => 0.01,]),
7576
];
7677
}
7778

0 commit comments

Comments
 (0)