Skip to content

Commit c15e4be

Browse files
committed
连接池容量测试在无 Swoole 环境(如 Windows)下跳过
1 parent 5ca49d6 commit c15e4be

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎tests/unit/HttpRequestTest/HttpRequestTest.php‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -900,6 +900,10 @@ public function testSaveFileFopenFailureThrows(): void
900900
*/
901901
public function testConnectionPoolChannelCapacity(): void
902902
{
903+
if (!\extension_loaded('swoole'))
904+
{
905+
$this->markTestSkipped('Requires ext/swoole');
906+
}
903907
$config = new \Yurun\Util\YurunHttp\Pool\Config\PoolConfig($this->host, 5, 0.0);
904908
$pool = new \Yurun\Util\YurunHttp\Handler\Swoole\SwooleHttpConnectionPool($config);
905909
$ref = new \ReflectionProperty($pool, 'channel');

0 commit comments

Comments
 (0)