Skip to content

Commit

Permalink
What is with pthreads?
Browse files Browse the repository at this point in the history
  • Loading branch information
trowski committed Oct 24, 2018
1 parent 9197b9f commit d6505da
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/Context/AbstractContextTest.php
Expand Up @@ -2,6 +2,7 @@

namespace Amp\Parallel\Test\Context;

use Amp\Delayed;
use Amp\Loop;
use Amp\Parallel\Sync\Channel;
use Amp\Parallel\Sync\ExitSuccess;
Expand Down Expand Up @@ -299,10 +300,11 @@ public function testExitingContextOnSend()
{
Loop::run(function () {
$context = $this->createContext(function () {
yield new Delayed(1000);
exit;
});

$context->start();
yield $context->start();
yield $context->send(\str_pad("", 1024 * 1024, "-"));
});
}
Expand Down

0 comments on commit d6505da

Please sign in to comment.