From 65ba13f3ef2863b8e0136465eca9a4747821b0b3 Mon Sep 17 00:00:00 2001 From: Fabian Meyer Date: Sat, 1 Oct 2022 01:55:11 +0200 Subject: [PATCH] Use reactphp/async instead of clue/reactphp-block --- composer.json | 2 +- tests/BaseTestCase.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index f3a9485..009c34c 100644 --- a/composer.json +++ b/composer.json @@ -13,7 +13,7 @@ "react/socket": "^1.12" }, "require-dev": { - "clue/block-react": "^1.5", + "react/async": "^4 || ^3 || ^2", "phpunit/phpunit": "^9.3 || ^5.7 || ^4.8.35" }, "autoload": { diff --git a/tests/BaseTestCase.php b/tests/BaseTestCase.php index cbf72eb..be67f93 100644 --- a/tests/BaseTestCase.php +++ b/tests/BaseTestCase.php @@ -37,7 +37,7 @@ protected function createConnection(LoopInterface $loop) $factory = new Factory($loop); $promise = $factory->createConnection($this->getConnectionString()); - return \Clue\React\Block\await($promise, $loop, 10.0); + return \React\Async\await(\React\Promise\Timer\timeout($promise, 10.0)); } protected function getDataTable()