Skip to content

Commit

Permalink
Adjustment for tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
lotharthesavior committed Oct 5, 2024
1 parent a82c58c commit 5f03dd7
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/Sample/config/jacked-server-http.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@

// @phpstan-ignore-next-line
// 'pid_file' => $_ENV['JACKED_SERVER_PID_FILE'] ?? ROOT_DIR . '/jacked-server.pid',

'http_compression' => ($_ENV['JACKED_SERVER_HTTP_COMPRESSION'] ?? 'true') === 'true',
'http_compression_level' => (int) ($_ENV['JACKED_SERVER_HTTP_COMPRESSION_LEVEL'] ?? 1),
'http_parse_cookie' => ($_ENV['JACKED_SERVER_HTTP_PARSE_COOKIE'] ?? 'true') === 'true',
],

// ------------------------------------------------------------
Expand Down
4 changes: 4 additions & 0 deletions tests/Sample/config/jacked-server.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@

// @phpstan-ignore-next-line
// 'pid_file' => $_ENV['JACKED_SERVER_PID_FILE'] ?? ROOT_DIR . '/jacked-server.pid',

'http_compression' => ($_ENV['JACKED_SERVER_HTTP_COMPRESSION'] ?? 'true') === 'true',
'http_compression_level' => (int) ($_ENV['JACKED_SERVER_HTTP_COMPRESSION_LEVEL'] ?? 1),
'http_parse_cookie' => ($_ENV['JACKED_SERVER_HTTP_PARSE_COOKIE'] ?? 'true') === 'true',
],

// ------------------------------------------------------------
Expand Down
4 changes: 4 additions & 0 deletions tests/Sample/ws-auth/jacked-server-with-ws-auth-2.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@

// @phpstan-ignore-next-line
// 'pid_file' => $_ENV['JACKED_SERVER_PID_FILE'] ?? ROOT_DIR . '/jacked-server.pid',

'http_compression' => ($_ENV['JACKED_SERVER_HTTP_COMPRESSION'] ?? 'true') === 'true',
'http_compression_level' => (int) ($_ENV['JACKED_SERVER_HTTP_COMPRESSION_LEVEL'] ?? 1),
'http_parse_cookie' => ($_ENV['JACKED_SERVER_HTTP_PARSE_COOKIE'] ?? 'true') === 'true',
],
'conveyor-options' => [
'websocket-auth-token' => $_ENV['JACKED_SERVER_WEBSOCKET_AUTH_TOKEN'] ?? null,
Expand Down
4 changes: 4 additions & 0 deletions tests/Sample/ws-auth/jacked-server-with-ws-auth.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@

// @phpstan-ignore-next-line
// 'pid_file' => $_ENV['JACKED_SERVER_PID_FILE'] ?? ROOT_DIR . '/jacked-server.pid',

'http_compression' => ($_ENV['JACKED_SERVER_HTTP_COMPRESSION'] ?? 'true') === 'true',
'http_compression_level' => (int) ($_ENV['JACKED_SERVER_HTTP_COMPRESSION_LEVEL'] ?? 1),
'http_parse_cookie' => ($_ENV['JACKED_SERVER_HTTP_PARSE_COOKIE'] ?? 'true') === 'true',
],
'conveyor-options' => [
'websocket-auth-token' => $_ENV['JACKED_SERVER_WEBSOCKET_AUTH_TOKEN'] ?? null,
Expand Down

0 comments on commit 5f03dd7

Please sign in to comment.