Skip to content

Commit

Permalink
fix tests [3]
Browse files Browse the repository at this point in the history
  • Loading branch information
matyhtf committed Apr 23, 2024
1 parent ed50730 commit 0890024
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/swoole_coroutine/signal_listener.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ require __DIR__ . '/../include/bootstrap.php';
use Swoole\Coroutine;
use Swoole\Process;

ini_set('swoole.enable_coroutine', 'off');
swoole_async_set(['enable_coroutine' => false]);

$pm = new ProcessManager;
$pm->parentFunc = function () use ($pm) {
Expand Down
2 changes: 1 addition & 1 deletion tests/swoole_runtime/stream_select/base.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ swoole_runtime/stream_select: base
require __DIR__ . '/../../include/bootstrap.php';
Swoole\Runtime::enableCoroutine();
go(function () {
Swoole\Runtime::enableCoroutine();
$fp1 = stream_socket_client("tcp://www.baidu.com:80", $errno, $errstr, 30);
$fp2 = stream_socket_client("tcp://www.qq.com:80", $errno, $errstr, 30);
if (!$fp1) {
Expand All @@ -28,5 +27,6 @@ go(function () {
fclose($fp1);
}
});
Swoole\Runtime::enableCoroutine(0);
?>
--EXPECT--

0 comments on commit 0890024

Please sign in to comment.