summaryrefslogtreecommitdiffhomepage
path: root/test/test_node_application.py
diff options
context:
space:
mode:
authorAndrei Zeliankou <zelenkov@nginx.com>2023-09-26 12:49:39 +0100
committerAndrei Zeliankou <zelenkov@nginx.com>2023-09-26 12:49:39 +0100
commite0c26757740fa7974af6e6592e35b5f2e00339fe (patch)
tree78651c9a5c94ced2a57c12f03ffa97ffe6e73ed4 /test/test_node_application.py
parent0f630c3f604e76de370529907b51ad29dfdc4ecb (diff)
downloadunit-e0c26757740fa7974af6e6592e35b5f2e00339fe.tar.gz
unit-e0c26757740fa7974af6e6592e35b5f2e00339fe.tar.bz2
Node.js: response body chunk can now be a Uint8Array.
Starting from Node.js 15.0.0 the chunk parameter of the response.write() can be a Uint8Array. This closes #870 issue on GitHub.
Diffstat (limited to 'test/test_node_application.py')
-rw-r--r--test/test_node_application.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/test_node_application.py b/test/test_node_application.py
index e4226535..ab8aa8f8 100644
--- a/test/test_node_application.py
+++ b/test/test_node_application.py
@@ -149,6 +149,10 @@ def test_node_application_write_buffer():
assert client.get()['body'] == 'buffer', 'write buffer'
+def test_node_application_write_array():
+ client.load('write_array')
+
+ assert client.get()['body'] == 'array', 'write array'
def test_node_application_write_callback(temp_dir):
client.load('write_callback')