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