mirror of
https://github.com/shlinkio/shlink.git
synced 2026-03-05 23:03:11 +08:00
Added workers nums handling to simplified config parser
This commit is contained in:
@@ -52,6 +52,7 @@ class SimplifiedConfigParserTest extends TestCase
|
||||
'port' => '1234',
|
||||
],
|
||||
'base_path' => '/foo/bar',
|
||||
'task_worker_num' => 50,
|
||||
];
|
||||
$expected = [
|
||||
'app_options' => [
|
||||
@@ -102,6 +103,14 @@ class SimplifiedConfigParserTest extends TestCase
|
||||
'not_found_redirects' => [
|
||||
'invalid_short_url' => 'foobar.com',
|
||||
],
|
||||
|
||||
'zend-expressive-swoole' => [
|
||||
'swoole-http-server' => [
|
||||
'options' => [
|
||||
'task_worker_num' => 50,
|
||||
],
|
||||
],
|
||||
],
|
||||
];
|
||||
|
||||
$result = ($this->postProcessor)(array_merge($config, $simplified));
|
||||
|
||||
Reference in New Issue
Block a user