Skip to content

Commit 3571d3f

Browse files
authored
Replaced Swoole\Coroutine\Channel by Hyperf\Engine\Channel. (#4808)
1 parent 9d52cf5 commit 3571d3f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/RedisTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
use Hyperf\Context\Context;
1616
use Hyperf\Contract\ConfigInterface;
1717
use Hyperf\Di\Container;
18+
use Hyperf\Engine\Channel as Chan;
1819
use Hyperf\Pool\Channel;
1920
use Hyperf\Pool\Exception\ConnectionException;
2021
use Hyperf\Pool\PoolOption;
@@ -78,7 +79,7 @@ public function testRedisSelect()
7879

7980
public function testHasAlreadyBeenBoundToAnotherCoroutine()
8081
{
81-
$chan = new \Swoole\Coroutine\Channel(1);
82+
$chan = new Chan(1);
8283
$redis = $this->getRedis();
8384
$ref = new \ReflectionClass($redis);
8485
$method = $ref->getMethod('getConnection');

0 commit comments

Comments
 (0)