]> git.kaiwu.me - njs.git/commit
Tests: fixed incr() tests for a shared dictionary.
authorDmitry Volyntsev <xeioex@nginx.com>
Thu, 7 Sep 2023 23:12:31 +0000 (16:12 -0700)
committerDmitry Volyntsev <xeioex@nginx.com>
Thu, 7 Sep 2023 23:12:31 +0000 (16:12 -0700)
commitc95c8a826b244c866657782b9afe2d58d1cdaf7a
treebbbb65f1c9cc674b12e038d1afd346af918a3472
parentba5fe2cbdb4f6201e54958ed0e26a6d82b0a529a
Tests: fixed incr() tests for a shared dictionary.

Previously, the incr() method called SharedDict.incr() with a NaN value
as a second argument because parseInt(undefined) returns NaN.

The test itself failed to capture the issue because it matches the whole
HTTP response and the pattern itself was too short, so it matched
accidentally.
nginx/t/js_shared_dict.t