From: Dmitry Volyntsev Date: Thu, 19 Nov 2026 06:09:54 +0000 (-0800) Subject: Tests: size lifetime test zones for 64K pages X-Git-Url: https://git.kaiwu.me/http/%7B@url%7D?a=commitdiff_plain;h=4fbccb036997be73fde22951cfb077e0fda0f01f;p=njs.git Tests: size lifetime test zones for 64K pages The lifetime tests added in aaaf5712 configure 32k shared dict zones, but nginx requires at least eight pages per zone. On systems with 64 KiB pages, nginx rejects both test configurations at startup. Use 512k for the two scopes zones. They only exchange test results and do not exercise dictionary capacity or eviction. --- diff --git a/nginx/t/js_http_lifetime_scopes.t b/nginx/t/js_http_lifetime_scopes.t index c9ae9c10..71d523cd 100644 --- a/nginx/t/js_http_lifetime_scopes.t +++ b/nginx/t/js_http_lifetime_scopes.t @@ -38,7 +38,7 @@ http { js_context_reuse 1; js_import test.js; js_var $test_value original; - js_shared_dict_zone zone=scopes:32k; + js_shared_dict_zone zone=scopes:512k; server { listen 127.0.0.1:8080; diff --git a/nginx/t/stream_js_object_lifetime.t b/nginx/t/stream_js_object_lifetime.t index 82901db1..5c69c34c 100644 --- a/nginx/t/stream_js_object_lifetime.t +++ b/nginx/t/stream_js_object_lifetime.t @@ -41,7 +41,7 @@ stream { js_var $test_value original; js_var $result; js_set $engine test.engine; - js_shared_dict_zone zone=scopes:32k; + js_shared_dict_zone zone=scopes:512k; server { listen 127.0.0.1:8081;