Skip to content

Commit

Permalink
Update ThreadedParcelTest
Browse files Browse the repository at this point in the history
  • Loading branch information
trowski committed Mar 6, 2020
1 parent d378e7b commit 2c76f0f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions test/Sync/ThreadedParcelTest.php
Expand Up @@ -4,17 +4,18 @@

use Amp\Parallel\Context\Thread;
use Amp\Parallel\Sync\Channel;
use Amp\Parallel\Sync\Parcel;
use Amp\Parallel\Sync\ThreadedParcel;
use Amp\Promise;
use Amp\Success;

/**
* @requires extension pthreads
*/
class ThreadedParcelTest extends AbstractParcelTest
{
protected function createParcel($value): Parcel
protected function createParcel($value): Promise
{
return new ThreadedParcel($value);
return new Success(new ThreadedParcel($value));
}

public function testWithinThread()
Expand Down

0 comments on commit 2c76f0f

Please sign in to comment.