]> git.kaiwu.me - njs.git/commit
Tests: adapt stream_js.t to nginx changes.
authorDmitry Volyntsev <xeioex@nginx.com>
Tue, 2 Apr 2024 06:13:25 +0000 (23:13 -0700)
committerDmitry Volyntsev <xeioex@nginx.com>
Tue, 2 Apr 2024 06:13:25 +0000 (23:13 -0700)
commitfa4109181712fcef2aa2ab91e3f68eee8e2b15ad
tree67fa9b00d5ff0775821cc79d1b0cad4479aef7ff
parent4bf96d9d12348da689cdd0a85e668ad4ce16679a
Tests: adapt stream_js.t to nginx changes.

Make the test more robust against changes in nginx, specifically
cf890df37bb6 (Stream: socket peek in preread phase).

The filter callbacks may be called multiple times by nginx and the exact
number is not specified. The new test avoids relying on the exact number
of calls from nginx.
nginx/t/stream_js.t