diff --git a/bin/test/run-api-tests.sh b/bin/test/run-api-tests.sh index eabc62d6..32339c19 100755 --- a/bin/test/run-api-tests.sh +++ b/bin/test/run-api-tests.sh @@ -10,5 +10,5 @@ echo 'Starting server...' vendor/bin/zend-expressive-swoole start -d sleep 2 -APP_ENV=test DB_DRIVER=mysql vendor/bin/phpunit --order-by=random -c phpunit-api.xml --testdox --colors=always +vendor/bin/phpunit --order-by=random -c phpunit-api.xml --testdox --colors=always vendor/bin/zend-expressive-swoole stop diff --git a/config/test/test_config.global.php b/config/test/test_config.global.php index 4e8ebdaf..a0a9aeb7 100644 --- a/config/test/test_config.global.php +++ b/config/test/test_config.global.php @@ -66,6 +66,7 @@ return [ ], 'zend-expressive-swoole' => [ + 'enable_coroutine' => false, 'swoole-http-server' => [ 'host' => $swooleTestingHost, 'port' => $swooleTestingPort, @@ -74,6 +75,7 @@ return [ 'pid_file' => sys_get_temp_dir() . '/shlink-test-swoole.pid', 'worker_num' => 1, 'task_worker_num' => 1, + 'enable_coroutine' => false, ], ], ],