Skip to content

Commit

Permalink
修复测试用例在 Swoole 4.3 的进程残留问题
Browse files Browse the repository at this point in the history
  • Loading branch information
Yurunsoft committed Jul 30, 2019
1 parent 4ac5241 commit 49fbd49
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
15 changes: 11 additions & 4 deletions composer.json
Expand Up @@ -22,9 +22,16 @@
}
},
"scripts": {
"test": "php ./tests/phpunit -c ./tests/phpunit.xml",
"install-test": "composer install && composer test",
"test-no-dev": "phpunit -c ./tests/phpunit.xml",
"install-test-no-dev": "php ./.travis/composer-no-phpunit.php && composer install && composer test-no-dev"
"test": "@php ./tests/phpunit -c ./tests/phpunit.xml",
"install-test": [
"@composer install",
"@composer test"
],
"test-no-dev": "phpunit -c ./tests/phpunit.xml",
"install-test-no-dev": [
"@php ./.travis/composer-no-phpunit.php",
"@composer install",
"@composer test-no-dev"
]
}
}
2 changes: 1 addition & 1 deletion tests/server/WebSocket/stop-server.sh
Expand Up @@ -10,7 +10,7 @@ if [ -f $pidFile ];then
ret=$(ps --no-heading ${LINE} | wc -l)
if [[ "$ret" = "1" ]]; then
echo "PID: ${LINE}"
kill -9 ${LINE}
kill -15 ${LINE}
fi
break
done
Expand Down

0 comments on commit 49fbd49

Please sign in to comment.