diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-21 20:56:20 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-21 20:56:20 +0000 |
commit | 868522aa377a4519adb0b9f402586ab7a41b86ba (patch) | |
tree | 44e805e154a3ace9bd8dbac73843e80d296b7814 /debian/patches/drop-one-error-test.patch | |
parent | Adding upstream version 5.28.2+dfsg1+~cs23.11.12.3. (diff) | |
download | node-undici-868522aa377a4519adb0b9f402586ab7a41b86ba.tar.xz node-undici-868522aa377a4519adb0b9f402586ab7a41b86ba.zip |
Adding debian version 5.28.2+dfsg1+~cs23.11.12.3-6.debian/5.28.2+dfsg1+_cs23.11.12.3-6debian
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/patches/drop-one-error-test.patch')
-rw-r--r-- | debian/patches/drop-one-error-test.patch | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/debian/patches/drop-one-error-test.patch b/debian/patches/drop-one-error-test.patch new file mode 100644 index 0000000..0043c95 --- /dev/null +++ b/debian/patches/drop-one-error-test.patch @@ -0,0 +1,42 @@ +Description: drop one error test that fail under Debian env +Author: Yadd <yadd@debian.org> +Forwarded: not-needed +Last-Update: 2023-11-26 + +--- a/test/client-dispatch.js ++++ b/test/client-dispatch.js +@@ -782,34 +782,3 @@ + }) + }) + }) +- +-test('dispatch onBodySent throws error', (t) => { +- const server = http.createServer((req, res) => { +- res.end('ended') +- }) +- t.teardown(server.close.bind(server)) +- +- server.listen(0, () => { +- const client = new Pool(`http://localhost:${server.address().port}`) +- t.teardown(client.close.bind(client)) +- const body = 'hello' +- client.dispatch({ +- path: '/', +- method: 'POST', +- body +- }, { +- onBodySent (chunk) { +- throw new Error('fail') +- }, +- onError (err) { +- t.type(err, Error) +- t.equal(err.message, 'fail') +- t.end() +- }, +- onConnect () {}, +- onHeaders () {}, +- onData () {}, +- onComplete () {} +- }) +- }) +-}) |