fix: we can redirect disturbed request body if it's not going to be used #15509
Annotations
5 errors and 1 notice
Run tests with coverage:
test/redirect-stream.js#L284
[Error [ERR_TEST_FAILURE]: Expected values to be strictly equal:
+ actual - expected
+ 'http://localhost:40025/300/2'
- 'http://localhost:40025/300/3'
^] {
code: 'ERR_TEST_FAILURE',
failureType: 'testCodeFailure',
cause: AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:
+ actual - expected
+ 'http://localhost:40025/300/2'
- 'http://localhost:40025/300/3'
^
at res.<computed> [as strictEqual] (/home/runner/work/undici/undici/node_modules/@matteo.collina/tspl/tspl.js:52:35)
at /home/runner/work/undici/undici/test/redirect-stream.js:284:9
at StreamHandler.runInAsyncScope (node:async_hooks:211:14)
at StreamHandler.onHeaders (/home/runner/work/undici/undici/lib/api/api-stream.js:99:22)
at RedirectHandler.onHeaders (/home/runner/work/undici/undici/lib/handler/redirect-handler.js:143:27)
at Request.onHeaders (/home/runner/work/undici/undici/lib/core/request.js:245:29)
at Parser.onHeadersComplete (/home/runner/work/undici/undici/lib/dispatcher/client-h1.js:612:27)
at wasm_on_headers_complete (/home/runner/work/undici/undici/lib/dispatcher/client-h1.js:141:30)
at wasm://wasm/00032d9a:wasm-function[10]:0x56f
at wasm://wasm/00032d9a:wasm-function[20]:0x7d57 {
generatedMessage: true,
code: 'ERR_ASSERTION',
actual: 'http://localhost:40025/300/2',
expected: 'http://localhost:40025/300/3',
operator: 'strictEqual'
}
}
|
Run tests with coverage:
test/redirect-stream.js#L1
[Error [ERR_TEST_FAILURE]: test timed out after 30000ms] { code: 'ERR_TEST_FAILURE', failureType: 'testTimeoutFailure', cause: 'test timed out after 30000ms' }
|
Run tests with coverage:
test/redirect-request.js#L401
[Error [ERR_TEST_FAILURE]: Expected values to be strictly equal:
+ actual - expected
+ 'http://localhost:36589/300/2'
- 'http://localhost:36589/300/3'
^] {
code: 'ERR_TEST_FAILURE',
failureType: 'testCodeFailure',
cause: AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:
+ actual - expected
+ 'http://localhost:36589/300/2'
- 'http://localhost:36589/300/3'
^
at res.<computed> [as strictEqual] (/home/runner/work/undici/undici/node_modules/@matteo.collina/tspl/tspl.js:52:35)
at TestContext.<anonymous> (/home/runner/work/undici/undici/test/redirect-request.js:401:7)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
at async Test.run (node:internal/test_runner/test:935:9)
at async Test.processPendingSubtests (node:internal/test_runner/test:633:7) {
generatedMessage: true,
code: 'ERR_ASSERTION',
actual: 'http://localhost:36589/300/2',
expected: 'http://localhost:36589/300/3',
operator: 'strictEqual'
}
}
|
Run tests with coverage:
test/redirect-request.js#L1
[Error [ERR_TEST_FAILURE]: test timed out after 30000ms] { code: 'ERR_TEST_FAILURE', failureType: 'testTimeoutFailure', cause: 'test timed out after 30000ms' }
|
Run tests with coverage
Process completed with exit code 1.
|
Run tests with coverage
Total Tests: 975
Suites 📂: 78
Passed ✅: 966
Failed ❌: 2
Canceled 🚫: 2
Skipped ⏭️: 5
Todo 📝: 0
Duration 🕐: 50270.502ms
|
Loading