Skip to content

Commit

Permalink
Use reactphp/async instead of clue/reactphp-block
Browse files Browse the repository at this point in the history
  • Loading branch information
dinooo13 committed Oct 4, 2022
1 parent eb3bd2c commit 6afe861
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"react/socket": "^1.12"
},
"require-dev": {
"clue/block-react": "^1.5",
"react/async": "^4 || ^3 || ^2",
"clue/connection-manager-extra": "^1.3",
"phpunit/phpunit": "^9.3 || ^5.7 || ^4.8.35",
"react/event-loop": "^1.2",
Expand Down
6 changes: 2 additions & 4 deletions tests/FunctionalTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,8 @@

namespace Clue\Tests\React\Socks;

use Clue\React\Block;
use Clue\React\Socks\Client;
use Clue\React\Socks\Server;
use React\EventLoop\Loop;
use React\Socket\Connector;
use React\Socket\SecureConnector;
use React\Socket\SocketServer;
Expand Down Expand Up @@ -495,7 +493,7 @@ private function assertResolveStream($promise)
$stream->close();
});

Block\await($promise, Loop::get(), 2.0);
\React\Async\await(\React\Promise\Timer\timeout($promise, 2.0));
}

private function assertRejectPromise($promise, $message = null, $code = null)
Expand All @@ -514,6 +512,6 @@ private function assertRejectPromise($promise, $message = null, $code = null)
$this->setExpectedException('Exception', $message, $code);
}

Block\await($promise, Loop::get(), 2.0);
\React\Async\await(\React\Promise\Timer\timeout($promise, 2.0));
}
}

0 comments on commit 6afe861

Please sign in to comment.