Skip to content

Commit 0670c4f

Browse files
committed
测试禁用 Opcache,避免奇怪的失败问题 (#599)
* 测试禁用 Opcache * 修复 * 修复 kill 命令
1 parent 59150c4 commit 0670c4f

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

.github/workflows/ci.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ jobs:
319319
php-version: ${{ matrix.php }}
320320
tools: pecl
321321
extensions: >
322-
apcu, bcmath, curl, openssl, mbstring, intl, json, redis, mysqli, pdo, pdo_mysql, sockets, zip,
322+
apcu, bcmath, curl, openssl, mbstring, intl, json, redis, mysqli, pdo, pdo_mysql, sockets, zip, :opcache,
323323
swoole-swoole/swoole-src@${{ matrix.swoole }}
324324
env:
325325
SWOOLE_CONFIGURE_OPTS: >
@@ -411,7 +411,7 @@ jobs:
411411
roadrunner: [2.7.*]
412412
extensions:
413413
[
414-
"apcu, bcmath, curl, openssl, mbstring, intl, json, redis, mysqli, pdo, pdo_mysql, sockets",
414+
"apcu, bcmath, curl, openssl, mbstring, intl, json, redis, mysqli, pdo, pdo_mysql, sockets, :opcache",
415415
]
416416
env:
417417
IMI_ROADRUNNER_BINARY: ${{ github.workspace }}\rr.exe

src/Components/fpm/tests/HttpServer/bin/stop.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ __DIR__=$(cd `dirname $0`; pwd)
55
pidFile="$__DIR__/server.pid"
66

77
if [ -f $pidFile ];then
8-
kill $(cat $pidFile)
8+
kill -15 $(cat $pidFile)
99
fi

src/Components/workerman-gateway/tests/bootstrap.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ function checkPort13002(): bool
131131
$keyword = 'imi:master';
132132
}
133133
ttyExec(<<<CMD
134-
kill `ps -ef|grep "{$keyword}"|grep -v grep|awk '{print $2}'`
134+
kill -15 `ps -ef|grep "{$keyword}"|grep -v grep|awk '{print $2}'`
135135
CMD);
136136
echo 'WorkermanServers stoped!', \PHP_EOL, \PHP_EOL;
137137
});

0 commit comments

Comments
 (0)