Skip to content

Commit 50c282b

Browse files
authored
Fix: Skipping pgsql tests In Swoole >= 6.0 (#6743)
1 parent 1424371 commit 50c282b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/Cases/PgSQL/PgSQLTest.php

+2
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
namespace Cases\PgSQL;
1414

1515
use Hyperf\DB\DB;
16+
use HyperfTest\Database\PgSQL\Stubs\SwooleVersionStub;
1617
use HyperfTest\DB\Cases\AbstractTestCase;
1718
use PHPUnit\Framework\Attributes\CoversNothing;
1819

@@ -25,6 +26,7 @@ class PgSQLTest extends AbstractTestCase
2526
{
2627
public function testExecute()
2728
{
29+
SwooleVersionStub::skipV6();
2830
$res = DB::connection('pgsql')->execute('INSERT INTO public.users (email, name) VALUES (?, ?);', ['[email protected]', 'limx']);
2931

3032
$this->assertGreaterThan(0, $res);

0 commit comments

Comments
 (0)